From 379aeb8813fa54340a60a26edd13d117b89703a7 Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 13 Dec 2015 05:23:28 -0500 Subject: [PATCH] add a single Python 2.6 source/code test --- test/Makefile | 2 +- test/base-tests/{python2 => }/compile_tests | 0 .../{python2 => python2.7}/test_applyEquiv.py | 0 .../test_applyEquiv.pyc_dis_unverified | 28 +++++ .../test_augmentedAssign.py | 0 .../test_augmentedAssign.pyc_dis_unverified | 57 +++++++++ .../{python2 => python2.7}/test_class.py | 0 .../python2.7/test_class.pyc_dis_unverified | 39 ++++++ .../{python2 => python2.7}/test_del.py | 0 .../test_divide_future.py | 0 .../test_divide_future.pyc_dis_unverified | 6 + .../test_divide_no_future.py | 0 .../{python2 => python2.7}/test_docstring.py | 0 .../{python2 => python2.7}/test_empty.py | 0 .../{python2 => python2.7}/test_exceptions.py | 0 .../test_exceptions.pyc_dis_unverified | 118 ++++++++++++++++++ .../{python2 => python2.7}/test_exec.py | 0 .../test_expressions.py | 0 .../test_extendedImport.py | 0 .../test_extendedPrint.py | 0 .../test_extendedarg.py-notyet | 0 .../{python2 => python2.7}/test_functions.py | 0 .../{python2 => python2.7}/test_global.py | 0 .../{python2 => python2.7}/test_globals.py | 0 .../{python2 => python2.7}/test_import.py | 0 .../{python2 => python2.7}/test_import_as.py | 0 .../{python2 => python2.7}/test_integers.py | 0 .../{python2 => python2.7}/test_iterators.py | 0 .../{python2 => python2.7}/test_lambda.py | 0 .../test_listComprehensions.py | 0 .../{python2 => python2.7}/test_loops.py | 0 .../{python2 => python2.7}/test_loops2.py | 0 .../{python2 => python2.7}/test_mine.py | 0 .../{python2 => python2.7}/test_misc.py | 0 .../test_nested_elif.py | 0 .../test_nested_scopes.py | 0 .../test_prettyprint.py | 0 .../{python2 => python2.7}/test_print.py | 0 .../{python2 => python2.7}/test_print_to.py | 0 .../test_single_stmt.py | 0 .../{python2 => python2.7}/test_slices.py | 0 .../test_tuple_params.py-notyet | 0 .../test_tuples.py-notyet | 0 .../{python2 => python2.7}/test_yield.py | 0 test/base-tests/python2/test_applyEquiv.pyc | Bin 1108 -> 0 bytes .../python2/test_augmentedAssign.pyc | Bin 1180 -> 0 bytes test/base-tests/python2/test_class.pyc | Bin 2412 -> 0 bytes test/base-tests/python2/test_del.pyc | Bin 554 -> 0 bytes .../base-tests/python2/test_divide_future.pyc | Bin 405 -> 0 bytes .../python2/test_divide_no_future.pyc | Bin 337 -> 0 bytes test/base-tests/python2/test_docstring.pyc | Bin 2244 -> 0 bytes test/base-tests/python2/test_empty.pyc | Bin 166 -> 0 bytes test/base-tests/python2/test_exceptions.pyc | Bin 3541 -> 0 bytes test/base-tests/python2/test_exec.pyc | Bin 259 -> 0 bytes test/base-tests/python2/test_expressions.pyc | Bin 725 -> 0 bytes .../python2/test_extendedImport.pyc | Bin 604 -> 0 bytes .../base-tests/python2/test_extendedPrint.pyc | Bin 319 -> 0 bytes test/base-tests/python2/test_functions.pyc | Bin 3958 -> 0 bytes test/base-tests/python2/test_global.pyc | Bin 838 -> 0 bytes test/base-tests/python2/test_globals.pyc | Bin 444 -> 0 bytes test/base-tests/python2/test_import.pyc | Bin 553 -> 0 bytes test/base-tests/python2/test_import_as.pyc | Bin 676 -> 0 bytes test/base-tests/python2/test_integers.pyc | Bin 482 -> 0 bytes test/base-tests/python2/test_iterators.pyc | Bin 278 -> 0 bytes test/base-tests/python2/test_lambda.pyc | Bin 1529 -> 0 bytes .../python2/test_listComprehensions.pyc | Bin 1146 -> 0 bytes test/base-tests/python2/test_loops.pyc | Bin 944 -> 0 bytes test/base-tests/python2/test_loops2.pyc | Bin 233 -> 0 bytes test/base-tests/python2/test_mine.pyc | Bin 669 -> 0 bytes test/base-tests/python2/test_misc.pyc | Bin 1325 -> 0 bytes test/base-tests/python2/test_nested_elif.pyc | Bin 902 -> 0 bytes .../base-tests/python2/test_nested_scopes.pyc | Bin 5729 -> 0 bytes test/base-tests/python2/test_prettyprint.pyc | Bin 2414 -> 0 bytes test/base-tests/python2/test_print.pyc | Bin 314 -> 0 bytes test/base-tests/python2/test_print_to.pyc | Bin 413 -> 0 bytes test/base-tests/python2/test_single_stmt.pyc | Bin 182 -> 0 bytes test/base-tests/python2/test_slices.pyc | Bin 798 -> 0 bytes test/base-tests/python2/test_yield.pyc | Bin 908 -> 0 bytes test/ok_2.6/anydbm.py | 83 ++++++++++++ test/test_pythonlib.py | 29 +++-- 80 files changed, 350 insertions(+), 12 deletions(-) rename test/base-tests/{python2 => }/compile_tests (100%) rename test/base-tests/{python2 => python2.7}/test_applyEquiv.py (100%) create mode 100644 test/base-tests/python2.7/test_applyEquiv.pyc_dis_unverified rename test/base-tests/{python2 => python2.7}/test_augmentedAssign.py (100%) create mode 100644 test/base-tests/python2.7/test_augmentedAssign.pyc_dis_unverified rename test/base-tests/{python2 => python2.7}/test_class.py (100%) create mode 100644 test/base-tests/python2.7/test_class.pyc_dis_unverified rename test/base-tests/{python2 => python2.7}/test_del.py (100%) rename test/base-tests/{python2 => python2.7}/test_divide_future.py (100%) create mode 100644 test/base-tests/python2.7/test_divide_future.pyc_dis_unverified rename test/base-tests/{python2 => python2.7}/test_divide_no_future.py (100%) rename test/base-tests/{python2 => python2.7}/test_docstring.py (100%) rename test/base-tests/{python2 => python2.7}/test_empty.py (100%) rename test/base-tests/{python2 => python2.7}/test_exceptions.py (100%) create mode 100644 test/base-tests/python2.7/test_exceptions.pyc_dis_unverified rename test/base-tests/{python2 => python2.7}/test_exec.py (100%) rename test/base-tests/{python2 => python2.7}/test_expressions.py (100%) rename test/base-tests/{python2 => python2.7}/test_extendedImport.py (100%) rename test/base-tests/{python2 => python2.7}/test_extendedPrint.py (100%) rename test/base-tests/{python2 => python2.7}/test_extendedarg.py-notyet (100%) rename test/base-tests/{python2 => python2.7}/test_functions.py (100%) rename test/base-tests/{python2 => python2.7}/test_global.py (100%) rename test/base-tests/{python2 => python2.7}/test_globals.py (100%) rename test/base-tests/{python2 => python2.7}/test_import.py (100%) rename test/base-tests/{python2 => python2.7}/test_import_as.py (100%) rename test/base-tests/{python2 => python2.7}/test_integers.py (100%) rename test/base-tests/{python2 => python2.7}/test_iterators.py (100%) rename test/base-tests/{python2 => python2.7}/test_lambda.py (100%) rename test/base-tests/{python2 => python2.7}/test_listComprehensions.py (100%) rename test/base-tests/{python2 => python2.7}/test_loops.py (100%) rename test/base-tests/{python2 => python2.7}/test_loops2.py (100%) rename test/base-tests/{python2 => python2.7}/test_mine.py (100%) rename test/base-tests/{python2 => python2.7}/test_misc.py (100%) rename test/base-tests/{python2 => python2.7}/test_nested_elif.py (100%) rename test/base-tests/{python2 => python2.7}/test_nested_scopes.py (100%) rename test/base-tests/{python2 => python2.7}/test_prettyprint.py (100%) rename test/base-tests/{python2 => python2.7}/test_print.py (100%) rename test/base-tests/{python2 => python2.7}/test_print_to.py (100%) rename test/base-tests/{python2 => python2.7}/test_single_stmt.py (100%) rename test/base-tests/{python2 => python2.7}/test_slices.py (100%) rename test/base-tests/{python2 => python2.7}/test_tuple_params.py-notyet (100%) rename test/base-tests/{python2 => python2.7}/test_tuples.py-notyet (100%) rename test/base-tests/{python2 => python2.7}/test_yield.py (100%) delete mode 100644 test/base-tests/python2/test_applyEquiv.pyc delete mode 100644 test/base-tests/python2/test_augmentedAssign.pyc delete mode 100644 test/base-tests/python2/test_class.pyc delete mode 100644 test/base-tests/python2/test_del.pyc delete mode 100644 test/base-tests/python2/test_divide_future.pyc delete mode 100644 test/base-tests/python2/test_divide_no_future.pyc delete mode 100644 test/base-tests/python2/test_docstring.pyc delete mode 100644 test/base-tests/python2/test_empty.pyc delete mode 100644 test/base-tests/python2/test_exceptions.pyc delete mode 100644 test/base-tests/python2/test_exec.pyc delete mode 100644 test/base-tests/python2/test_expressions.pyc delete mode 100644 test/base-tests/python2/test_extendedImport.pyc delete mode 100644 test/base-tests/python2/test_extendedPrint.pyc delete mode 100644 test/base-tests/python2/test_functions.pyc delete mode 100644 test/base-tests/python2/test_global.pyc delete mode 100644 test/base-tests/python2/test_globals.pyc delete mode 100644 test/base-tests/python2/test_import.pyc delete mode 100644 test/base-tests/python2/test_import_as.pyc delete mode 100644 test/base-tests/python2/test_integers.pyc delete mode 100644 test/base-tests/python2/test_iterators.pyc delete mode 100644 test/base-tests/python2/test_lambda.pyc delete mode 100644 test/base-tests/python2/test_listComprehensions.pyc delete mode 100644 test/base-tests/python2/test_loops.pyc delete mode 100644 test/base-tests/python2/test_loops2.pyc delete mode 100644 test/base-tests/python2/test_mine.pyc delete mode 100644 test/base-tests/python2/test_misc.pyc delete mode 100644 test/base-tests/python2/test_nested_elif.pyc delete mode 100644 test/base-tests/python2/test_nested_scopes.pyc delete mode 100644 test/base-tests/python2/test_prettyprint.pyc delete mode 100644 test/base-tests/python2/test_print.pyc delete mode 100644 test/base-tests/python2/test_print_to.pyc delete mode 100644 test/base-tests/python2/test_single_stmt.pyc delete mode 100644 test/base-tests/python2/test_slices.pyc delete mode 100644 test/base-tests/python2/test_yield.pyc create mode 100644 test/ok_2.6/anydbm.py diff --git a/test/Makefile b/test/Makefile index 099f865f..2f689b42 100644 --- a/test/Makefile +++ b/test/Makefile @@ -11,7 +11,7 @@ check: check-short check-2.7-ok #: Run quick tests check-short: - $(PYTHON) test_pythonlib.py --base2 --verify $(COMPILE) + $(PYTHON) test_pythonlib.py --base-2.7 --verify $(COMPILE) #: Run longer Python 2.7's lib files known to be okay check-2.7-ok: diff --git a/test/base-tests/python2/compile_tests b/test/base-tests/compile_tests similarity index 100% rename from test/base-tests/python2/compile_tests rename to test/base-tests/compile_tests diff --git a/test/base-tests/python2/test_applyEquiv.py b/test/base-tests/python2.7/test_applyEquiv.py similarity index 100% rename from test/base-tests/python2/test_applyEquiv.py rename to test/base-tests/python2.7/test_applyEquiv.py diff --git a/test/base-tests/python2.7/test_applyEquiv.pyc_dis_unverified b/test/base-tests/python2.7/test_applyEquiv.pyc_dis_unverified new file mode 100644 index 00000000..986adb39 --- /dev/null +++ b/test/base-tests/python2.7/test_applyEquiv.pyc_dis_unverified @@ -0,0 +1,28 @@ +# Embedded file name: /src/external-vcs/github/rocky/uncompyle6/test/base-tests/python2/test_applyEquiv.py + + +def kwfunc(**kwargs): + print kwargs.items() + + +def argsfunc(*args): + print args + + +def no_apply(*args, **kwargs): + print args + print kwargs.items() + argsfunc(34) + foo = argsfunc(*args) + argsfunc(*args) + argsfunc(34, *args) + kwfunc(**kwargs) + kwfunc(x=11, **kwargs) + no_apply(*args, **kwargs) + no_apply(34, *args, **kwargs) + no_apply(x=11, *args, **kwargs) + no_apply(34, x=11, *args, **kwargs) + no_apply(42, 34, x=11, *args, **kwargs) + + +no_apply(1, 2, 4, 8, a=2, b=3, c=5) \ No newline at end of file diff --git a/test/base-tests/python2/test_augmentedAssign.py b/test/base-tests/python2.7/test_augmentedAssign.py similarity index 100% rename from test/base-tests/python2/test_augmentedAssign.py rename to test/base-tests/python2.7/test_augmentedAssign.py diff --git a/test/base-tests/python2.7/test_augmentedAssign.pyc_dis_unverified b/test/base-tests/python2.7/test_augmentedAssign.pyc_dis_unverified new file mode 100644 index 00000000..90541b2d --- /dev/null +++ b/test/base-tests/python2.7/test_augmentedAssign.pyc_dis_unverified @@ -0,0 +1,57 @@ +# Embedded file name: /src/external-vcs/github/rocky/uncompyle6/test/base-tests/python2/test_augmentedAssign.py +raise "This program can't be run" +a = 1 +b = 2 +a += b +print a +a -= b +print a +a *= b +print a +a -= a +print a +a += 21 +print a +l = [1, 2, 3] +l[1] *= 3 +print l[1] +l[1][2][3] = 7 +l[1][2][3] *= 3 +l[:] += [9] +print l +l[:2] += [9] +print l +l[1:] += [9] +print l +l[1:4] += [9] +print l +l += [42, 43] +print l +a.value = 1 +a.value += 1 +a.b.val = 1 +a.b.val += 1 +l = [] +for i in range(3): + lj = [] + for j in range(3): + lk = [] + for k in range(3): + lk.append(0) + + lj.append(lk) + + l.append(lj) + +i = j = k = 1 + +def f(): + global i + i += 1 + return i + + +l[i][j][k] = 1 +i = 1 +l[f()][j][k] += 1 +print i, l \ No newline at end of file diff --git a/test/base-tests/python2/test_class.py b/test/base-tests/python2.7/test_class.py similarity index 100% rename from test/base-tests/python2/test_class.py rename to test/base-tests/python2.7/test_class.py diff --git a/test/base-tests/python2.7/test_class.pyc_dis_unverified b/test/base-tests/python2.7/test_class.pyc_dis_unverified new file mode 100644 index 00000000..43dfff39 --- /dev/null +++ b/test/base-tests/python2.7/test_class.pyc_dis_unverified @@ -0,0 +1,39 @@ +# Embedded file name: /src/external-vcs/github/rocky/uncompyle6/test/base-tests/python2/test_class.py + + +class A: + + class A1: + + def __init__(self): + print 'A1.__init__' + + def foo(self): + print 'A1.foo' + + def __init__(self): + print 'A.__init__' + + def foo(self): + print 'A.foo' + + +class B: + + def __init__(self): + print 'B.__init__' + + def bar(self): + print 'B.bar' + + +class C(A, B): + + def foobar(self): + print 'C.foobar' + + +c = C() +c.foo() +c.bar() +c.foobar() \ No newline at end of file diff --git a/test/base-tests/python2/test_del.py b/test/base-tests/python2.7/test_del.py similarity index 100% rename from test/base-tests/python2/test_del.py rename to test/base-tests/python2.7/test_del.py diff --git a/test/base-tests/python2/test_divide_future.py b/test/base-tests/python2.7/test_divide_future.py similarity index 100% rename from test/base-tests/python2/test_divide_future.py rename to test/base-tests/python2.7/test_divide_future.py diff --git a/test/base-tests/python2.7/test_divide_future.pyc_dis_unverified b/test/base-tests/python2.7/test_divide_future.pyc_dis_unverified new file mode 100644 index 00000000..9f7bc79f --- /dev/null +++ b/test/base-tests/python2.7/test_divide_future.pyc_dis_unverified @@ -0,0 +1,6 @@ +# Embedded file name: /src/external-vcs/github/rocky/uncompyle6/test/base-tests/python2/test_divide_future.py +from __future__ import division +print ' 1 // 2 =', 0 +print '1.0 // 2.0 =', 0.0 +print ' 1 / 2 =', 0.5 +print '1.0 / 2.0 =', 0.5 \ No newline at end of file diff --git a/test/base-tests/python2/test_divide_no_future.py b/test/base-tests/python2.7/test_divide_no_future.py similarity index 100% rename from test/base-tests/python2/test_divide_no_future.py rename to test/base-tests/python2.7/test_divide_no_future.py diff --git a/test/base-tests/python2/test_docstring.py b/test/base-tests/python2.7/test_docstring.py similarity index 100% rename from test/base-tests/python2/test_docstring.py rename to test/base-tests/python2.7/test_docstring.py diff --git a/test/base-tests/python2/test_empty.py b/test/base-tests/python2.7/test_empty.py similarity index 100% rename from test/base-tests/python2/test_empty.py rename to test/base-tests/python2.7/test_empty.py diff --git a/test/base-tests/python2/test_exceptions.py b/test/base-tests/python2.7/test_exceptions.py similarity index 100% rename from test/base-tests/python2/test_exceptions.py rename to test/base-tests/python2.7/test_exceptions.py diff --git a/test/base-tests/python2.7/test_exceptions.pyc_dis_unverified b/test/base-tests/python2.7/test_exceptions.pyc_dis_unverified new file mode 100644 index 00000000..fdc00732 --- /dev/null +++ b/test/base-tests/python2.7/test_exceptions.pyc_dis_unverified @@ -0,0 +1,118 @@ +# Embedded file name: /src/external-vcs/github/rocky/uncompyle6/test/base-tests/python2/test_exceptions.py +import dis + +def x11(): + try: + a = 'try except' + except: + a = 2 + + b = '--------' + + +def x12(): + try: + a = 'try except else(pass)' + except: + a = 2 + + b = '--------' + + +def x13(): + try: + a = 'try except else(a=3)' + except: + a = 2 + else: + a = 3 + + b = '--------' + + +def x21(): + try: + a = 'try KeyError' + except KeyError: + a = 8 + + b = '--------' + + +def x22(): + try: + a = 'try (IdxErr, KeyError) else(pass)' + except (IndexError, KeyError): + a = 8 + + b = '--------' + + +def x23(): + try: + a = 'try KeyError else(a=9)' + except KeyError: + a = 8 + else: + a = 9 + + b = '--------' + + +def x31(): + try: + a = 'try KeyError IndexError' + except KeyError: + a = 8 + except IndexError: + a = 9 + + b = '--------' + + +def x32(): + try: + a = 'try KeyError IndexError else(pass)' + except KeyError: + a = 8 + except IndexError: + a = 9 + + b = '--------' + + +def x33(): + try: + a = 'try KeyError IndexError else(a=9)' + except KeyError: + a = 8 + except IndexError: + a = 9 + else: + a = 9 + + b = '#################' + + +def x41(): + if a == 1: + a = 1 + elif b == 1: + b = 1 + else: + c = 1 + b = '#################' + + +def x42(): + if a == 1: + a = 1 + elif b == 1: + b = 1 + else: + c = 1 + xxx = 'mmm' + + +if __name__ == '__main__': + dis.dis(xx) \ No newline at end of file diff --git a/test/base-tests/python2/test_exec.py b/test/base-tests/python2.7/test_exec.py similarity index 100% rename from test/base-tests/python2/test_exec.py rename to test/base-tests/python2.7/test_exec.py diff --git a/test/base-tests/python2/test_expressions.py b/test/base-tests/python2.7/test_expressions.py similarity index 100% rename from test/base-tests/python2/test_expressions.py rename to test/base-tests/python2.7/test_expressions.py diff --git a/test/base-tests/python2/test_extendedImport.py b/test/base-tests/python2.7/test_extendedImport.py similarity index 100% rename from test/base-tests/python2/test_extendedImport.py rename to test/base-tests/python2.7/test_extendedImport.py diff --git a/test/base-tests/python2/test_extendedPrint.py b/test/base-tests/python2.7/test_extendedPrint.py similarity index 100% rename from test/base-tests/python2/test_extendedPrint.py rename to test/base-tests/python2.7/test_extendedPrint.py diff --git a/test/base-tests/python2/test_extendedarg.py-notyet b/test/base-tests/python2.7/test_extendedarg.py-notyet similarity index 100% rename from test/base-tests/python2/test_extendedarg.py-notyet rename to test/base-tests/python2.7/test_extendedarg.py-notyet diff --git a/test/base-tests/python2/test_functions.py b/test/base-tests/python2.7/test_functions.py similarity index 100% rename from test/base-tests/python2/test_functions.py rename to test/base-tests/python2.7/test_functions.py diff --git a/test/base-tests/python2/test_global.py b/test/base-tests/python2.7/test_global.py similarity index 100% rename from test/base-tests/python2/test_global.py rename to test/base-tests/python2.7/test_global.py diff --git a/test/base-tests/python2/test_globals.py b/test/base-tests/python2.7/test_globals.py similarity index 100% rename from test/base-tests/python2/test_globals.py rename to test/base-tests/python2.7/test_globals.py diff --git a/test/base-tests/python2/test_import.py b/test/base-tests/python2.7/test_import.py similarity index 100% rename from test/base-tests/python2/test_import.py rename to test/base-tests/python2.7/test_import.py diff --git a/test/base-tests/python2/test_import_as.py b/test/base-tests/python2.7/test_import_as.py similarity index 100% rename from test/base-tests/python2/test_import_as.py rename to test/base-tests/python2.7/test_import_as.py diff --git a/test/base-tests/python2/test_integers.py b/test/base-tests/python2.7/test_integers.py similarity index 100% rename from test/base-tests/python2/test_integers.py rename to test/base-tests/python2.7/test_integers.py diff --git a/test/base-tests/python2/test_iterators.py b/test/base-tests/python2.7/test_iterators.py similarity index 100% rename from test/base-tests/python2/test_iterators.py rename to test/base-tests/python2.7/test_iterators.py diff --git a/test/base-tests/python2/test_lambda.py b/test/base-tests/python2.7/test_lambda.py similarity index 100% rename from test/base-tests/python2/test_lambda.py rename to test/base-tests/python2.7/test_lambda.py diff --git a/test/base-tests/python2/test_listComprehensions.py b/test/base-tests/python2.7/test_listComprehensions.py similarity index 100% rename from test/base-tests/python2/test_listComprehensions.py rename to test/base-tests/python2.7/test_listComprehensions.py diff --git a/test/base-tests/python2/test_loops.py b/test/base-tests/python2.7/test_loops.py similarity index 100% rename from test/base-tests/python2/test_loops.py rename to test/base-tests/python2.7/test_loops.py diff --git a/test/base-tests/python2/test_loops2.py b/test/base-tests/python2.7/test_loops2.py similarity index 100% rename from test/base-tests/python2/test_loops2.py rename to test/base-tests/python2.7/test_loops2.py diff --git a/test/base-tests/python2/test_mine.py b/test/base-tests/python2.7/test_mine.py similarity index 100% rename from test/base-tests/python2/test_mine.py rename to test/base-tests/python2.7/test_mine.py diff --git a/test/base-tests/python2/test_misc.py b/test/base-tests/python2.7/test_misc.py similarity index 100% rename from test/base-tests/python2/test_misc.py rename to test/base-tests/python2.7/test_misc.py diff --git a/test/base-tests/python2/test_nested_elif.py b/test/base-tests/python2.7/test_nested_elif.py similarity index 100% rename from test/base-tests/python2/test_nested_elif.py rename to test/base-tests/python2.7/test_nested_elif.py diff --git a/test/base-tests/python2/test_nested_scopes.py b/test/base-tests/python2.7/test_nested_scopes.py similarity index 100% rename from test/base-tests/python2/test_nested_scopes.py rename to test/base-tests/python2.7/test_nested_scopes.py diff --git a/test/base-tests/python2/test_prettyprint.py b/test/base-tests/python2.7/test_prettyprint.py similarity index 100% rename from test/base-tests/python2/test_prettyprint.py rename to test/base-tests/python2.7/test_prettyprint.py diff --git a/test/base-tests/python2/test_print.py b/test/base-tests/python2.7/test_print.py similarity index 100% rename from test/base-tests/python2/test_print.py rename to test/base-tests/python2.7/test_print.py diff --git a/test/base-tests/python2/test_print_to.py b/test/base-tests/python2.7/test_print_to.py similarity index 100% rename from test/base-tests/python2/test_print_to.py rename to test/base-tests/python2.7/test_print_to.py diff --git a/test/base-tests/python2/test_single_stmt.py b/test/base-tests/python2.7/test_single_stmt.py similarity index 100% rename from test/base-tests/python2/test_single_stmt.py rename to test/base-tests/python2.7/test_single_stmt.py diff --git a/test/base-tests/python2/test_slices.py b/test/base-tests/python2.7/test_slices.py similarity index 100% rename from test/base-tests/python2/test_slices.py rename to test/base-tests/python2.7/test_slices.py diff --git a/test/base-tests/python2/test_tuple_params.py-notyet b/test/base-tests/python2.7/test_tuple_params.py-notyet similarity index 100% rename from test/base-tests/python2/test_tuple_params.py-notyet rename to test/base-tests/python2.7/test_tuple_params.py-notyet diff --git a/test/base-tests/python2/test_tuples.py-notyet b/test/base-tests/python2.7/test_tuples.py-notyet similarity index 100% rename from test/base-tests/python2/test_tuples.py-notyet rename to test/base-tests/python2.7/test_tuples.py-notyet diff --git a/test/base-tests/python2/test_yield.py b/test/base-tests/python2.7/test_yield.py similarity index 100% rename from test/base-tests/python2/test_yield.py rename to test/base-tests/python2.7/test_yield.py diff --git a/test/base-tests/python2/test_applyEquiv.pyc b/test/base-tests/python2/test_applyEquiv.pyc deleted file mode 100644 index a2d9a117b1132c350fd969e2482a3c978721fae9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1108 zcmcgrv2GJV5PfrJC$SwXkw6rbR41fx5=c}Cr2qv9DM${Yph4%`OS0tbGv0NGrBIm? z_#l3ZAK=ZL6)-)qHP3Hnc6Q&)j?-Vm{@o|_yAtcqfWL>d@PgogufTf}F(Pn@kpxu& zm%?@6x^P=?+s1d`dT@QX0al$<+%8VCArG?Sg+%Q&E$k7lfseonIC{mKPBIN18^$iF zkJTi!%PlT1J{R+|kdeV4yd}%Syv(bsSk0$JeQ;TZ{LIJm#W%_XsRuL%eQn zC3nbfOYqM6E|sjE`&)9#^)~H|`hOBk^0nNwKJrxsD}j(P_zn1y;D)Q0aSiB}1Wf(T zevok(I0Lp8iDW!n@I!+f4a?EBrg7bFUT?Ae+_K@7*2|gtCyK_s^ZTE&s9Ru+j}X$ Gd%pp`J>b*; diff --git a/test/base-tests/python2/test_augmentedAssign.pyc b/test/base-tests/python2/test_augmentedAssign.pyc deleted file mode 100644 index 98b19bc010c2ba3fc9969aef46dd3ab45cdbcda6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1180 zcmcIiU279T6g@M$*>uzN!&b#0X!;<=mb#!|EksciS`hlsip8LW&F;8Ovf0G_DCw*1 z-|$!Z2Rt*`rm62H+_U$dGjqQf>(5HEUIDs<}TARXJ{j`(2-E|1p% z*pI>rB6cWSOuz=2RqCwGlDD?!ys7s1nt!&yhYkV@TcuRlnM+lKONb? z*hHrWD;*~(4vPM$i6c4 zvNZ72G*@Zj$Ghi2=0*Mdtmt{^I2c}dMG}lhlZ#lr@^Y2sUeC|euJ$r-a*>~nlNW~X z`b9KSNv^{8S=Nt|=M;6xA5RFG9s;r^j{5iLn0*-4H`p^6=M`$_eq5+rk5A7qsh>pZ zm;`b?Q#>%I2eV*kf+5!p_>+lB!ed?aW<=xt=Q)>Hu{|1xMXcWH>e)AfBOT$08Y=&q sTodbX#fEqwR;g~5cAwvMRHQ4`L|ts~_9pMo?2h1Ht_ruZLGGdW3o8@LcK`qY diff --git a/test/base-tests/python2/test_class.pyc b/test/base-tests/python2/test_class.pyc deleted file mode 100644 index a32e099e8421c054df8dd17db86e0cb33cc06621..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2412 zcmc&$OOMk)40e(>eee)agarJ7UfO6u+7m*wJ-}&^vJw)#L~Sx;Gh=^ad+Y|kAGM#q&A+6wc>?@?z_8aK8NLn4Jh>D3CGvHQxi48$ zvS26jB&&%LF`mruuD*NWi}AT@9Eb_zx<=k3SKo1=a#<*s-4@I_4`h&n=o5erF>DV6 z7RE3I0JTFvu;|kwjAV*wT$A{+TgMLPgAC4g>Zn}Ry*gCKy-=b@gc9uKwv>yvV+7t3 zA69+*1PJAt3;O`F!C5~^=8L&Yk}jswxtQd=AE}ML z&E3^%8ZC?T`#M@J(&FZJotyK>8SA3y#F`#C8{MwmRk3)Z@+8eC*7hN4Lg&^xk8Fuu zyyMV^SPJyBqSynEso=z*8CDo2_6^=H-L*N)Vsc}W#I+$wlA9u1<(S6Y6LZxbn{ub{ zYRm{~07*ix6&&YJLLU4h87lCp`iI$guLNMm3@VSmhVk(pYZ*~uiIp%dH3ZcL9ae?O zZ)rdDJB?PLO~z@Vxga84S>{Kbt)YY7@>D@V3VPUF(g)Q_a`FNDihOzaYZn-f4wU^)_bia4`IFY Nq|-+=G zl!{H}?VC4mUN>w1w7u>{@)Se;HSoN_(%%RI;ERD^aC;}Qv!M5kt&Qyqp3X*|2$#4; zvx#V|`A{@#u>~WsRdWwS3&t3=_B$Z9LF~Ya7TdLWhgmFA*M`7&3yV2xUg@2hpRix4%wcT+ diff --git a/test/base-tests/python2/test_divide_future.pyc b/test/base-tests/python2/test_divide_future.pyc deleted file mode 100644 index dcc34748ce7ebb152741d68626d1d885026eef3d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 405 zcmY+A!A`?442GQ|q^)egBjni27PbT8z}Rl%w8M}<;!X?^+|&X(yR6BJ$oxt>?>B0!o9U3BBAzYBYY(tNpN7s?O zfk-)%%yKTJTv&m^#>4GuHkr07jKvNm-q*v)(DF>nU;50Th|Hsn$R9wXnEr`>MaRBW zY(9c1i%mYRmFJxe`)bRjQ|}E|g>r{ulbc%(#s}VRyctL5`PhWLE9PyVXQqpd>~ diff --git a/test/base-tests/python2/test_docstring.pyc b/test/base-tests/python2/test_docstring.pyc deleted file mode 100644 index c598d92ba7246f18c1b3a1d27f4b5a237fa9e19b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2244 zcmd5-O>fgc5FOh|h$G4YDh^11k3LYWI28wk5CSAP<=|8($z|o(Zex+!QFeofL{IRK z`2)-wJ6I`Sr=&#jc=mJVy?MKKz903D2a690)jx;dulUiYY*L~rTZ_K2V^L~T+M(1z z^DEJ0%I%hnIg}B-d!M#xJ$*Ft^2qV~l(o zEv%G<^H_VP^k$j2TxB{d%+Ti{x@Po<`vSd6g6y-&RzJveu(o@RmJL90*N~sNKzGmL4G%)=>FgVQWVZD9~X(-EJ_veWu}w? z=}KLe>3YG<2*4uDig5o#E}Mo<@%AP52oxcnM&yp=cHNfS`c)-IJX+msJ3`r+DEH0Z zCh{Iqq~>C}nIb{4lfmFIzqTbpY9g2DHauywiBuxo)J?1(i9eX8I+m#U=VliN&e9AXc${L1jrsex4Cn fJU%tIprld{D8vCY(+YSj2buH0$Q!a;7Y4J7T8 zzWLy@f2V(delvIcEQm>M@nDC!xxL+)Z@<|cqCYdKlOM+08iiK`zt7S1cL)n#MRlSN zP$KjdiXtm2N`$PKC{eQJM2V3#FUlNQaZ%>UN{A9CD=A8XtduB8vKB;1k(Cx@f$TI{ z89IuP_l<0#&qQ{Hz9>?z__3e82A`Z?xGLf=`x-^tLDTmkIv7mR8PPj8LrN+5j2le^S$hPmX_hd{FS3wWChq*sV1itxny3RPb%>7YwbVx+Sq!Lm!&1 z-hiDWY8Q+ABVLkmoF z#4^QvqN5afYg5vIhh{YP?9MCCYkCgHKAZ@=@;;lpeIzSpfJUjf!p?E#254lE7d;?QQrq;l~wX4ic9 zcJnT&hH|gRrhg3CJThO zH{itD=oL_pmwC2KEblRv*CB?O*iGLk?7Zr74m^Q!Dup9gluKb{=-#1I6oNny#&t0& za#5(FZbV6of-x);d8~@VyOkaf37$}vd-ab(DH3a0dBWn7i^R?1JDw!i$pn$~gM YekP2(4MRGTOyH9WWeQpvEtyuo0fLRwwg3PC diff --git a/test/base-tests/python2/test_exec.pyc b/test/base-tests/python2/test_exec.pyc deleted file mode 100644 index 9c31ded4f50130df949cf851ed0ed72e71996508..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 259 zcmYk0!485j42C-}NHpGj0FGR65fe{pd;%^84_*w628@FdHVmA7WM9C}m}ry!{rY!n z>b@4USYsVuD*)=#IBd#B9^Yk3u+wFfgc5FOk7N=QhXR-Af7!k5-kkSY!cA%s+V2$d29Xa$NKdvM(DdV^r*QuQZ~(snZVnaSe}4wwLNG^Q zhJZ)Vzr-P2e)#zdzKEk~yd&<)2U#EEKq&7EjFBiUFxD?juN^wc7gKk^A zi-p1#=&OVY)meh~jCGaTv%8FvqU6PDp42|OZIV@$dADpVUL@)!nWuzj$|zYjyztei p)o0qF$}zukOJDQ3Qnet^zY#ha7l z<-K{#W6FCo>0=yWgd;!J7{8yABDqo%O>_5YNPs}B5 zQJ+h6^C|U67eenbgfv>E9DHNcDim~)S{W;&j#$TteQLQD27f>+k(RQv_|BN)CXC-4 z*ij<9&+LQ-7@q(W8ILP2`DKJ;}a3B;N*{ O>2{=zK`}H}a=rkcVMX}> diff --git a/test/base-tests/python2/test_functions.pyc b/test/base-tests/python2/test_functions.pyc deleted file mode 100644 index 83fa020fe2d5d8d5e94eafdfd7b1fca68ebdc3cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3958 zcmd^COK;jh5FTSg0)dbhY5F+iP*oh75C}~#RaGg6RH{U!Md~4{6dA9RAP7XZX-EaP z{H6Y~{(;Unyc~pY#f?;u$Ft+L_xomMXLrrtxy;US`2*=Er1PTWNbi!~qz8k}*GX@QF;9A%^o|%eNEfJHe8$M9d<<@!f{!)gQ!m0&E3%+D z;n&$#@;#^I_5;`J*zJQKj$gWJ2G_kt$?H0;`%6&+wMszaQ&dvuzmLcnqRuT z53akNir6nMxnt1mcKky&C-}SlBaG`qCBuO}xgyb_Ljc&ecU7KYT`tTr2AseIT3kR9 z2@@Su7;7aitd$iWdV-bJsY}mbUli~#Og{#gCIjgo+Zo^)ho03b&M&Y>;!N?=)*S~w zKBSEt5QUIVqW?7tsYE}?PZfd@n@gRI8PF!8+5`{>{)RtciA(}?2+;Gg+m(C6_D1)% ztw1F%7FBzjN1M1ij6E_jfL$S-)EYzh67S)PRYID#+V%QGeHhSEgB|CI1a1@MDYoQSvF!@ zR+}(v!2sTlNF4+30*|(ccV(X+jENT}#4#5@Tqb{rxCy>v;z=5&Xka43$pysm2_dfF zaVZEh?h0rW=De*Bupk76#R^?By2Y(vbY0)?255`2{GDH^Vj zt!SFeQVj&c&Pgv@G)W zp$Afe_gV(p{Gg7jh#63mkBBPexi8xqr{~EECT9u1`O}^8T^dWc*>i3Ep6@bW$#`X0 zMoqBEUTx%gDKFfI6!0s&rex(oLM!-6VN0skA@UH|GASJK6ymI~tScLmmgL$%Lh j#&Nmf1kMjPUEOQDAF(d_7(8vx{&^Gsv^Du>t+e?EjU`!p diff --git a/test/base-tests/python2/test_global.pyc b/test/base-tests/python2/test_global.pyc deleted file mode 100644 index 0abed12ccb7f3db93d30cdf5f94f1fc7763e8404..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 838 zcmcgpO-lnY5S`i9-LBAE!IKy9P=y*$@FXI5sHY-Z@Zd%EBeZMNZfR1n(4O=k`v-iJ zl~%mhz`RT*^JZQqjj#4$=gK_g^s^ZI9n78q3ZfLqlrj|oeG)wfqyzdOVn@_>O#O$V zLBnnn*`;vH2;i&9N$ehGj{&HI3LBy|{i#5x5FlgViQ=WM>^kC-RZ?FHNCgos!{32 z%SSpniOD9^F) z6ukP8B%;$NoBvRh$rx=5KpZzij)Gc+1QNOP`jP|jB(~=PrSf_kN+*uvhzI_g6FGY| diCpc3>`_e%jc%q@u{8QtzRu4mq>$rw#NPl3tuz1t diff --git a/test/base-tests/python2/test_globals.pyc b/test/base-tests/python2/test_globals.pyc deleted file mode 100644 index 7bb8bc1149a575e89cc2c3e8ecbcbcfbeef7c423..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 444 zcmcIe!Ait16nyErRTsPo>a7>Cmo=c^Nks6Vrv-Nx4||a|jcqY)N?s~k(2M%V{($dg z7yJSPZ!#HX@@DjNFgd(5PYSk2(0xmTrvwGSH^7RBfKLHM1S*|*9z-C*>U^cua)Gt^UND7(Q|w!H}Yb7^dz89XPEx4bZ5OaNjmCIU~0 zEvp)n&e_ssO`@{)%qO`{T;GPCv(S0Y!8zytdIt7SW%p>)bz_U(=$p`)h5d0H#bQ_d E0`DDR+5i9m diff --git a/test/base-tests/python2/test_import.pyc b/test/base-tests/python2/test_import.pyc deleted file mode 100644 index eff156dd3982787a6440555cf752d65ccc6a5408..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 553 zcmZusOG^VW5T5MTzHHS)@zkT>BIrT|@gO21*h{6+Z`N zj9A#Mx4|OQFFrS(U}`E1JtPVz=-EvM{J@kM5{z|%W}9g|)tYb|>BTGwvwT%)%MZLQ zn{Ep!C*!cyWUTKpBSruTzX9552(*ypR(A;R~|SE<>4|Wf0CN%BJwjG zKj;2p7Hc)nC7$?JpC7UKL(9mY=Vq#Box(p()m&%hh<#OVdZu);ka%uqlij%?_MC>Z KBif?ww8b|9(spzJ diff --git a/test/base-tests/python2/test_import_as.pyc b/test/base-tests/python2/test_import_as.pyc deleted file mode 100644 index 2cfecd0c4712b8bb1eb7135a83f3b273fac1f424..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 676 zcmZ8dO>fgc5FOi1+w?01TsY7p2On@P1qtKMdgyo%i^Y(fCX1rgAd;Y8XO92m$$N3!}{K=u@*MS-!bvo=q>UEg;tq%7f z-R|%XT<=2KZ%Y^IJ<$7*9)Kh5Jg5)b`Uvy@(gEmWNFVVXcj|#Z8sEJH^%(8}uAfMJ z|NS|9-f!^-CzJmWyZV1sQ=z9!^yZLm$BlC~YQ(+@En@x?`s zYCN5OPL$m!OS?>UB}q$CNM{nVxYFvUgt@jtiEoJg_akRff;s^+zs<@`mD@7RP!68%jZH?+mrs+A2m!@qzD zml4_`Qg>{8nb+Z_z-V64Vm*tjDQ=o*y)2AgHMM#j$xP9VHxdfMXw}fdEQc+hReEJC iWjUTPEqi*SO}VbsTk(Oi%LC_yJ8+MkQ?KuyI)4D2UdEM@^JSyp`*^e65C zsc}_mWbLIYCU)?aIy1}td^I&ynZDL$Rix!&SzEa_UYs}6iIahnGt1h~%i=Ql&-kCr oq;eN<^;S2FGFw@>)$_SC$YGpt^X&66ceu^Hh~f0Oi>)!?UxqPdyZ`_I diff --git a/test/base-tests/python2/test_iterators.pyc b/test/base-tests/python2/test_iterators.pyc deleted file mode 100644 index b355484e14a867e333453270744fc4280265d282..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 278 zcmZ9G&uYRz5XNVdN+sZ_9=r%WrU$#wLr+qAQ1s+MONBxyad$AmxT`xGNzOin&*=*| zD}vC0`OTjXzM1&kNe-v^w}M+lTt7J}pzZ+zXn>=D(Qg7j0#LwY-+|?{?q4WM!1y?wS(crAP8|l@Sg?M{?Kr+?u!R{;yzz%v(pVyl%7aaBFo{;z#&{ N!h27m9f^n;UjTR1JZ%5~ diff --git a/test/base-tests/python2/test_lambda.pyc b/test/base-tests/python2/test_lambda.pyc deleted file mode 100644 index 767dd6a557234c29b0cf93a0aba7706d48181580..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1529 zcmd5+O-sW-5S`uhQ|zS*`V(?#R}?&n2;PfC@F0S0lI@4)i|ke`*pvQa|9~?SW38TB znr2_#%!b*wZ_@QXdwYjx$z25BR|B6{IP4RG0f+%UkO+tcyyGq5UUFV?UjE8>Yniw~ zA-)_pYtpJon~0Gx=4x>VZv8GU7YPI!9*%1qwukUm-(wHoqv?^408Aalx{4`jZxEC% zBV}HlDKni6ULva|GdG=ws?4M3g_>tko)(M5oGWLnQ=ztIK+LLQ;ih?Z%K67cr(vvz znCoECiz>XN1uYJkkyMu4!01Qv00Wf#;K5SBQo_;$hZ%N{2s$RxQVR*tjEEy+^;f8k`kP=$k5_qewP@cO&>Trv-a*V2G1T?V?bz~Fw;J^I`IQ7SV z^nOh$sSKzD>kXR3S_s=vPK)iXujInYSL*lf^t`>p+UR^>-$p)tSNu0lb>XPnrOqbC jk@`X>#yPY4%$RNP#7gsco|x*y+D8G$qA&WgE9mzHxI|3~ diff --git a/test/base-tests/python2/test_listComprehensions.pyc b/test/base-tests/python2/test_listComprehensions.pyc deleted file mode 100644 index f7b0ed83a2b0238148e6b9f285ded80a8cdf8568..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1146 zcmcgr-D(q25dO~D{MJ;XX{(|rXedE!mR1liM1&OVO$%0#uvkm7=XA5}cGKOnkp|K$ zz4tY|?j!gzeE?s;nUh@#sn-T(cFvw}zWHWm;4R}sBE8}S(rs&8-9WDw zXo)p7&sY^)!X~wH`Kw~FO7A+4tLzF^kjreto6EEuYxi^B(DLTeLy_zfsj9#$LEVN| zwoBo$K806-E>lEvtU}YFYUfBDUy9_H5UPqFfLDXAfye_|OtG85u1D1nQ1LoTQcF;` zcwscApv;4$vJHId+@UWcEU^>p=o3Ncu&c5oL&nF!(Dxa@F{68ArcI9cW+0UhaUn39 ze@+(?Guk*Qy^EwuML2V>Lk=A#u#840S%nT}GUSjU=W_@}Fki^ICiPu?p6N6mL>u3H z;|5_inhf1^?4L~CN$ihL&!&-n?Pl6!?r>oA21mv{n`WbNyk*}XMxn`igiQ5F$0i)d zrc3wyw>XLhS*GL7M_iFxhX~8$Llzb?BCM0!>-=j#{LZ$sFu4w=WK5F|;y~MG`~AM{ zFtq+S<6P=`vk12K?Ob>W(|t=!5&ri$-ky%tB+~C#hUt=P$Ol3Qwl>)lvS(y1@?G(U Ro(<6y>#`y$@`bEBe*uZo&_HjDV4{d20YQTU27)4)t|DpDlTJS(oy}}q z`2+a`KS5Xif%64!{0DL8!h0+2BoP;es#EuQ>f}}zemLbzcY{|R@}JG;W8TSk0TUB zHF@7ihHT@$jNuUK0&_eQj_e84MRw}B0J)SOVj+Y%`GT_DHL9=6ySmY5>O~9U)r&sx z4*22<4r@F7(tcT>ARv#Q78zPWqJ2K$^H%`h5|DTzR-<8#W+Rnk)8PK|nkhOfU%G}> z8f#*0cE6Nb6JNVT%Kkeh#HnbG2a};TI(&nf!Fi2SSV8iFT{nq6S7)h?Cxc+`otL;n zKON1E+&J{cb9XlJ!sF>Y(D&R_C#ichNc5gqi94OAqi}M^#NP&CI8APIXp1=?9*1fc y=%)Okq|dNJ6)N#A(w1ctSxcX7t3*{Q|CL?Eq+*w|7238OIrDml9J<1tHvI<1)SPDk diff --git a/test/base-tests/python2/test_loops2.pyc b/test/base-tests/python2/test_loops2.pyc deleted file mode 100644 index 8dbf4697ff9bad3d6dbed73dc85f3e41d0e028f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 233 zcmYL@JqyAx5QZ;SsfyiP9NoHTpn{W#gF`0~1S^6_O+zcDP0gihf46_Ys|X&v&wcW8 z&fDt`XKF9t7j4Qb68ePK7$m^@G=d|8x(DIYg)q9iz!)PQNKpc?^BEm){1(wR2C+%; zTUcrG#t8nvEwvnt;POT5B36@!K%QQ0R$aK!;#Tvj5IQewCFk5qwEPmIoHP~kvbLEn hg75sSv@S82(yU9Si(Ds_lFQ};91uL_(4!9PkUoN)Ga>*0 diff --git a/test/base-tests/python2/test_mine.pyc b/test/base-tests/python2/test_mine.pyc deleted file mode 100644 index 6e7554c8a7d78ca7683ac2cfc1cfc24519a4cfbc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 669 zcmcgpJx{|h5Is8uK_$cj11zjrS|bJ)D#XB?p_Mv;Q0ko0hwLC zfOCLPeSjfApTTq+qyxf*a|Um|G@$Q-WN=&p2_UT(H`vJ&=uJO^SjU*Ijd7tPD$tQD zi>NCNU7|$kwwC!s74CO1@nzJb&fduf=!p&JuYz0!aSIy7PY}1Ev!^iC8h*tc=z904 zqXvq@QKFl9kqwJz+>9f&ZJGnwEGEh@+-+UbK-OzI^biHMgWVz-NI)MOW>#?_?0ODv z$0RORn+~m^IAd@Iz%7YgkMadp8W&YH8QY_#MBy_18d89VYc6zvny-u4ms2AP6{S0; zvG#|F8BGR$k;UI;{zS#uIG?5Rxo@O4{vgtFhcxZyGc(H6uJ!YAqT{FNsbEUZ6O|aw zZCQd0ET+n|$h<^vumON$Mzgp;PXQLaHpLt-9Sh0*KadwPFE}q_H9be}Q5TE0R5X^H zn;LpJA7^5cq8Sp^;R=c?d{(;wdPA%NR8JGCGOIcXfiZLy+O2~F{`Ozh~C3ZS40n5noNHT!IS{B1BhFj3V7UjnavU;MGHMm)4_e$CnQI?Im;8Sp-)7)*;nnHe<)uyb9Tpf+NS3;oITu&%U}&|NlanUX4#9)&9Pxq z`w&V!5LsNBi7j1*a3nJko4^|P+kySb2yK}PEA|7}k$h2Cuw^QXn7G#>OZ!Q97b$id z>%rujWilF0*(8nRXgp2C0n^k~1@Q{v7v+t}v!eJV6-wflRVa&Zt6+;?QK2G!RfVefjtY+WH5F>& zuc@#m{}k%hR2A zU`78g{Owqfq75{oAdCXP9d^&ogRswGHJ$>EKf)2dhX$6zUTAe8@>f^KS zXXUDMVfFZ(sv*LX%OlP%v7|c^YvadHzUj$D>N!@tYN|H*wV@ssxfWUsD{DT z`46yVbifzKkuZG7Vs%33U_9RK3?}2wy+?-5^r{YI_NtUSuj9Qf8hwq|6^v%O>w zX%?YMMP55V^E>`6>7hPZ@|&iU6X5<9ZYauIMc+qBVHGRO@nuSJKDO0OvN(IzjPN!Z z#sVi^qQ5yFFmW!&Pc>!~qKHA#W7H^ExpI;y#7*x*bcyFU)Mr>|tqPg4rcEymW1Jeb zU534Jr@EMcxa(+gR~YIrOhPUu)^@?NZ2W3V{JV<@@NW+#`HFKFJRHB)vHN@&^HHus@Mfm6p=bZ&P4eO%Ne`DzKegwvo4 zAzw_X@vG0cipfj1btQFE1H(_U!DR~5be=_Yu0E$H;^wDllVC1ZtiJM;s)sCR)8-Nk zneq*WoTu96uIRLRKha67O`F`DF_UKSIO6p$(98(MtzVMp=Qs(L&9cWLC;13XHMDGj z+`92Z;!5~goZ}}wySOdVXE214bfrAz(_70(iSboBT}ifwHIuZI21~Z1P?e~#o6%Co zR^x3FFm84l=)x-3wKh>?{*{@kF!MqdJ<8EsnMqxz%}yPih6@VfJT(az^-^kn3?Zc^ znCa!=()s_iZ_H96r(c08cf6E+kFfBU?P|U1!wtshl|GFauw<&mhO9X<7C{RO1+CK zbEkwWPs(UE{DzAd$1p1yy_f~MRFvCs_WCly1O{*Xq?_K0GRp_#3tKKKi>|B6Ydfh) z>W1sv-<$l!5*F`zcnyRw^HA!mh$wk_C0AVNhbK4|f|^h$nIAMvw-+(ayz%oeB7UbY zDZ2c!qk49~Qzb*u=uicU2pJvoZRF(&uP0Q&q~9snqLmc;-(A!DGgE_$8XHf?aUR`m-I!S;xQ#$fD% diff --git a/test/base-tests/python2/test_prettyprint.pyc b/test/base-tests/python2/test_prettyprint.pyc deleted file mode 100644 index bf3726b0e3636faae1367d4392a2b0002001b73d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2414 zcmcgtO>+`K5ba&Q0)%`)zV%L(#x=y^WTm2BJf%{b(gPO@b_TLafMN$r4xHk@@!$AY z`~mvjEJ)TeC0NFVdDGL|J=6Vq8dBd%h000yZ6MPpgZT_2>Np|_Uq`wk4G69@90}8+ zQlipQR~b=RscT16&Q6f(4OhaPsFm9mA?)*_3b9KO6I@m?m45ZU({e4gT*m=8e?xfa zrl>9Hq@{s4%AzV(xh-mkO0_F$&%Vtj?Ax$Md`WvKV|%_u==<^+8Rtcdycf}~+&JRA zp03jKRYBB&s6)9C2mJiW8Wx$kFIHK*0vVUp2OvEBj_2IC5SvYNWT)ohk3qSl8GcQR zSg~bMnN+-y@s`~XK`@qJIhr7bg%(qSmZto$bg5owe`8P1vIaCpar<&jz*j zd<(hE2Av>ALGM%$@43(Leco5w0X}cNpChag@`M5b?IC`Nutr!XY!EgHTZA%!yZYMz zOAvRb=Ospjv;PS}WG6LeN5#}2`P_hP7a>}M$yIWrl84V@RPN&;7@=OXKHQQ{tleul)0_HOV}gq6AlQ61pdPR zm+Z*3&F%z3bPD)=a`W_N3C79JlAdZ^OIO%ax@STbx>^KS<-js(lecwcsh`G#+)2Yj zI`c|h*qU6hCVDt0=Duscf}@{b_tmJYPx*%#;SXL`-7Mn+zw=a^nzO zf`>STWLk=|foX^%`vcB+70^nd-&VI(T0}1i;$dvwWumR+vlm?@>$2$!y%Sc068 oq6tLP+q|wegMV*YQ`t3IGyHR3)~YM?f%d}!5pbUec&GyY1>s^nlmGw# diff --git a/test/base-tests/python2/test_print_to.pyc b/test/base-tests/python2/test_print_to.pyc deleted file mode 100644 index b58e328857db9fede5c0d90b06cee5db588d3d2e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 413 zcmb7<&q@O^5XL9j?H@!v`3i--w1Eme74d2h9uz$EQraZ6(R8!y%!>PHK9>)mGpiuI zly=DcX7cednPgvA7dN-@#ll}?T<$m>X66I V_sKQU-^nI;&A8MfJyHWs;SW=9O(OsR diff --git a/test/base-tests/python2/test_single_stmt.pyc b/test/base-tests/python2/test_single_stmt.pyc deleted file mode 100644 index e383d4fdaa57363d4768cc5bd016dc9957d8e0a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 182 zcmZSn%*$0aGbk*X0SXv_v;z{ZD5hUr zl&qgxQIcAemzbklmRzi#o>`JnnxtQppPXH(Uz(SkpIcCwlWL}4l3HA%pOjdfstaNj u>laj(WaQ@=fyLvCGxO4OQsawDa!d4p5*$F2ZF2KdN^?@}KyE7rVg>*~Ni4(w diff --git a/test/base-tests/python2/test_slices.pyc b/test/base-tests/python2/test_slices.pyc deleted file mode 100644 index c815c5a7d32c546b5419e3af0dac4dda79823aa8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 798 zcma)3O>Yx15FI<8Yza_WBzi&S04zoAqVjQS5%~iZQX{TtvmUZmH{Qs0fLxLKi}?f0 z%tjDSWmkSPe)Bvt_Vj*Dvcosc=L)vpi0nsNu~YyS;HLs4N5PRI=-l(pT(Hq#lc06T=69vx+3D8%R=g18+;cVw%uV@bNhN!gvf)Tay@ZZz0CQX$(WwB+o; z*8#VER}$SOlOxa1RMC!8^-b;cLF$1OZn_P*4S-K#(RJN6!O8~YMI04a0`7j*Nh z{1HF(5y7l>(X2wd2<6gLrGJsk98FkzM{@vo%(_f;Xr?}X$KW&vpbv2AI1&d0Q`5BR z)IH`9O%D>!^D2eXFEEbDpOx2W%BFESNBPLC4v6k0d2vE8^=+y#7@_kXF(MU#wDI2@ z_m_qY7}F9HbqbfQN3INiA%3E55kpnrkA%UO&B?ba77Lf^^}Gmeb-gLpzG|1NO@r?X zPFBpzh$rmDVzo(i>(7M$5*t@xJSC3rdcJJ!y1@_pg7G!MP>)rnMqAuh-G87S=;ta| Q&-6fzRA29@iONLt8|n6mf&c&j diff --git a/test/base-tests/python2/test_yield.pyc b/test/base-tests/python2/test_yield.pyc deleted file mode 100644 index a10da2716c2139c3fb057648c45af30ae08028d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 908 zcmcIi!EVz)5PfSqX_7Vqsa3@R#D#+|WhD-rDB@75J*AQ(HBuyGIrcVjaMtPWy4X@V zm7m}{`2d*N26{l^*0uNfd3UrkZ{CJK$D`XH$yJWs2`x4IcwRos#AKwJ-1g^x*F=iCB4v4p}|AdAA zgq>ohz4EC~K8Yhb-T8`iZ3<-^FI4KxJi*mkdk8Mo<@L(^ANo#Vc zTBnT8s*~H?%4O+R%|ey(k^TVbtno50SyX+Cc^I$j_Mu%jT5C>x9pWl@yz=Qw* diff --git a/test/ok_2.6/anydbm.py b/test/ok_2.6/anydbm.py new file mode 100644 index 00000000..8b01ef3e --- /dev/null +++ b/test/ok_2.6/anydbm.py @@ -0,0 +1,83 @@ +"""Generic interface to all dbm clones. + +Instead of + + import dbm + d = dbm.open(file, 'w', 0666) + +use + + import anydbm + d = anydbm.open(file, 'w') + +The returned object is a dbhash, gdbm, dbm or dumbdbm object, +dependent on the type of database being opened (determined by whichdb +module) in the case of an existing dbm. If the dbm does not exist and +the create or new flag ('c' or 'n') was specified, the dbm type will +be determined by the availability of the modules (tested in the above +order). + +It has the following interface (key and data are strings): + + d[key] = data # store data at key (may override data at + # existing key) + data = d[key] # retrieve data at key (raise KeyError if no + # such key) + del d[key] # delete data stored at key (raises KeyError + # if no such key) + flag = key in d # true if the key exists + list = d.keys() # return a list of all existing keys (slow!) + +Future versions may change the order in which implementations are +tested for existence, add interfaces to other dbm-like +implementations. + +The open function has an optional second argument. This can be 'r', +for read-only access, 'w', for read-write access of an existing +database, 'c' for read-write access to a new or existing database, and +'n' for read-write access to a new database. The default is 'r'. + +Note: 'r' and 'w' fail if the database doesn't exist; 'c' creates it +only if it doesn't exist; and 'n' always creates a new database. + +""" + +class error(Exception): + pass + +_names = ['dbhash', 'gdbm', 'dbm', 'dumbdbm'] +_errors = [error] +_defaultmod = None + +for _name in _names: + try: + _mod = __import__(_name) + except ImportError: + continue + if not _defaultmod: + _defaultmod = _mod + _errors.append(_mod.error) + +if not _defaultmod: + raise ImportError, "no dbm clone found; tried %s" % _names + +error = tuple(_errors) + +def open(file, flag = 'r', mode = 0666): + # guess the type of an existing database + from whichdb import whichdb + result=whichdb(file) + if result is None: + # db doesn't exist + if 'c' in flag or 'n' in flag: + # file doesn't exist and the new + # flag was used so use default type + mod = _defaultmod + else: + raise error, "need 'c' or 'n' flag to open new db" + elif result == "": + # db type cannot be determined + raise error, "db type could not be determined" + else: + mod = __import__(result) + return mod.open(file, flag, mode) diff --git a/test/test_pythonlib.py b/test/test_pythonlib.py index 931524ca..2659da15 100755 --- a/test/test_pythonlib.py +++ b/test/test_pythonlib.py @@ -46,22 +46,29 @@ PYOC = ('*.pyc', '*.pyo') test_options = { # name: (src_basedir, pattern, output_base_suffix) - 'test': ['test', PYC, 'test'], - '2.7': ['python2.7', PYC, 'python2.7'], - 'ok-2.7': [os.path.join(src_dir, 'ok_2.7'), - PYC, 'ok-2.7'], - 'base2': [os.path.join(src_dir, 'base-tests', 'python2'), - PYC, 'base2'], + 'test': ['test', PYC, 'test'], + '2.7': ['python2.7', PYC, 'python2.7'], + 'ok-2.6': [os.path.join(src_dir, 'ok_2.6'), + PYC, 'ok-2.6'], + 'ok-2.7': [os.path.join(src_dir, 'ok_2.7'), + PYC, 'ok-2.7'], + 'base-2.7': [os.path.join(src_dir, 'base-tests', 'python2.7'), + PYC, 'base_2.7'], } #----- def help(): - print(""" -Usage-Examples: - test_pythonlib.py --base2 --verify --compile # compile, decompyle and verify short tests - test_pythonlib.py --ok-2.7 --verify # decompile and verify known good python 2.7 - test_pythonlib.py --2.7 # decompile Python's installed lib files + print("""Usage-Examples: + + # compile, decompyle and verify short tests for Python 2.7: + test_pythonlib.py --base-2.7 --verify --compile + + # decompile and verify known good python 2.7 + test_pythonlib.py --ok-2.7 --verify + + # decompile all of Python's installed lib files + test_pythonlib.py --2.7 """) sys.exit(1)