X Tutup
Skip to content

Commit fb5ad76

Browse files
committed
Include Python 2.2 in testing
1 parent d8598f6 commit fb5ad76

File tree

6 files changed

+9
-2
lines changed

6 files changed

+9
-2
lines changed

test/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ check-disasm:
4848

4949
#: Check deparsing bytecode 2.x only
5050
check-bytecode-2:
51-
$(PYTHON) test_pythonlib.py --bytecode-2.3 --bytecode-2.4 \
51+
$(PYTHON) test_pythonlib.py \
52+
--bytecode-2.2 --bytecode-2.3 --bytecode-2.4 \
5253
--bytecode-2.5 --bytecode-2.6 --bytecode-2.7 --bytecode-pypy2.7
5354

5455
#: Check deparsing bytecode 3.x only
@@ -61,6 +62,10 @@ check-bytecode: check-bytecode-3
6162
$(PYTHON) test_pythonlib.py --bytecode-2.3 --bytecode-2.4 \
6263
--bytecode-2.5 --bytecode-2.6 --bytecode-2.7 --bytecode-pypy2.7
6364

65+
#: Check deparsing Python 2.2
66+
check-bytecode-2.3:
67+
$(PYTHON) test_pythonlib.py --bytecode-2.2
68+
6469
#: Check deparsing Python 2.3
6570
check-bytecode-2.3:
6671
$(PYTHON) test_pythonlib.py --bytecode-2.3

test/bytecode_2.3/00_import.pyc

65 Bytes
Binary file not shown.

test/bytecode_2.7/00_import.pyc

69 Bytes
Binary file not shown.

test/bytecode_3.5/00_import.pyc

59 Bytes
Binary file not shown.

test/simple_source/stmts/00_import.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
import sys
44
from os import path
55
from os import *
6+
import time as time1, os as os1

test/test_pythonlib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def get_srcdir():
7878
test_options[key] = (os.path.join(src_dir, pythonlib), PYOC, key, vers)
7979
pass
8080

81-
for vers in (2.3, 2.4, 2.5, 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, 'pypy3.2', 'pypy2.7'):
81+
for vers in (2.2, 2.3, 2.4, 2.5, 2.6, 2.7,
82+
3.2, 3.3, 3.4, 3.5, 3.6, 'pypy3.2', 'pypy2.7'):
8283
bytecode = "bytecode_%s" % vers
8384
key = "bytecode-%s" % vers
8485
test_options[key] = (bytecode, PYC, bytecode, vers)

0 commit comments

Comments
 (0)
X Tutup