From 808e468e5e1606303917bcc94c5af0639ba51ff3 Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 24 Jul 2016 10:32:35 -0400 Subject: [PATCH] add-test: Make sure PyPy bytecode is separated --- test/add-test.py | 5 ++++- test/bytecode_pypy2.7/05_with.pyc | Bin 0 -> 220 bytes 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 test/bytecode_pypy2.7/05_with.pyc diff --git a/test/add-test.py b/test/add-test.py index 61d90385..905323d5 100755 --- a/test/add-test.py +++ b/test/add-test.py @@ -6,7 +6,10 @@ assert len(sys.argv) >= 2 version = sys.version[0:3] for path in sys.argv[1:]: short = os.path.basename(path) - cfile = "bytecode_%s/%s" % (version, short) + 'c' + if hasattr(sys, 'pypy_version_info'): + cfile = "bytecode_pypy%s/%s" % (version, short) + 'c' + else: + cfile = "bytecode_%s/%s" % (version, short) + 'c' print("byte-compiling %s to %s" % (path, cfile)) py_compile.compile(path, cfile) if isinstance(version, str) or version >= (2, 6, 0): diff --git a/test/bytecode_pypy2.7/05_with.pyc b/test/bytecode_pypy2.7/05_with.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a892047ff18a5500638717d30a8b718539e7f0c7 GIT binary patch literal 220 zcmYLCK?=e^49vD3w5a$3&wH|7youL(64XPbmqpqX3td~fS){lAz~}fdAD{^c4q=jz znN0MaMXzK?bNFE-eE@Kpd%>lk2Cxb;1quUrP9X~cLrC^%5y0`nbk-q@s}Dmfo@mbW zsOV-KT?sAT>7eB?MNGz&o_vSKoOlBguj?I&vy@c$6D{Rf*|tXG8sFs@JF?{B^~OlR Ws_kjalC5nDU*k@GI7wQliTVO2?JnQ| literal 0 HcmV?d00001