From a40e20958d57c397e06119e5cade87fa92ee99c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 10:36:56 -0700 Subject: [PATCH 01/25] Fix recursion in NotImplementedToExpectedFailure.run --- tests/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index 1fdad956cc..4287395f5d 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -592,8 +592,12 @@ def run(self, result=None): if self._testMethodName in getattr(self, 'not_implemented', []): # Mark 'expecting failure' on class. It will only be applicable # for this specific run. + + # -- Save the original test_method _before_ we + # overwrite it with wrapper + test_method = getattr(self, self._testMethodName) def wrapper(*args, **kwargs): - return getattr(self, self._testMethodName)(*args, **kwargs) + return test_method(*args, **kwargs) wrapper.__unittest_expecting_failure__ = True setattr(self, self._testMethodName, wrapper) From 63498f79595f0969203124208054b5877ac9618a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 10:47:59 -0700 Subject: [PATCH 02/25] Fix flake8 complaint --- tests/utils.py | 256 +++++++++++++++++++++++++------------------------ 1 file changed, 130 insertions(+), 126 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index 4287395f5d..15100f1131 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -107,10 +107,10 @@ def adjust(text, run_in_function=False): if run_in_function: final_lines = [ - "def test_function():", - ] + final_lines + [ - "test_function()", - ] + "def test_function():", + ] + final_lines + [ + "test_function()", + ] return '\n'.join(final_lines) @@ -302,7 +302,6 @@ def cleanse_python(raw, substitutions): class TranspileTestCase(TestCase): - @classmethod def setUpClass(cls): global _output_dir @@ -398,7 +397,7 @@ def assertCodeExecution( self.assertEqual(java_out, py_out, context) # Confirm that both output strings end with the canary statement - substring_start = - (len(END_OF_CODE_STRING)+1) + substring_start = - (len(END_OF_CODE_STRING) + 1) if exits_early: self.assertNotEqual(java_out[substring_start:], END_OF_CODE_STRING_NEWLINE) self.assertNotEqual(py_out[substring_start:], END_OF_CODE_STRING_NEWLINE) @@ -437,7 +436,7 @@ def assertCodeExecution( self.assertEqual(java_out, py_out, context) # Confirm that both output strings end with the canary statement - substring_start = - (len(END_OF_CODE_STRING)+1) + substring_start = - (len(END_OF_CODE_STRING) + 1) if exits_early: self.assertNotEqual(java_out[substring_start:], END_OF_CODE_STRING_NEWLINE) self.assertNotEqual(py_out[substring_start:], END_OF_CODE_STRING_NEWLINE) @@ -446,10 +445,10 @@ def assertCodeExecution( self.assertEqual(py_out[substring_start:], END_OF_CODE_STRING_NEWLINE) def assertJavaExecution( - self, code, out, - extra_code=None, java=None, - run_in_global=True, run_in_function=True, - args=None, substitutions=None): + self, code, out, + extra_code=None, java=None, + run_in_global=True, run_in_function=True, + args=None, substitutions=None): """Run code under Java and check the output is as expected""" global _output_dir self.maxDiff = None @@ -596,6 +595,7 @@ def run(self, result=None): # -- Save the original test_method _before_ we # overwrite it with wrapper test_method = getattr(self, self._testMethodName) + def wrapper(*args, **kwargs): return test_method(*args, **kwargs) @@ -606,109 +606,108 @@ def wrapper(*args, **kwargs): SAMPLE_DATA = { 'bool': [ - 'True', - 'False', - ], + 'True', + 'False', + ], 'bytearray': [ - 'bytearray()', - 'bytearray(1)', - 'bytearray([1, 2, 3])', - # 'bytearray(b"hello world")', - ], + 'bytearray()', + 'bytearray(1)', + 'bytearray([1, 2, 3])', + # 'bytearray(b"hello world")', + ], 'bytes': [ - 'b""', - 'b"This is another string of bytes"', - 'b"One arg: %s"', - 'b"Three args: %s | %s | %s"', - ], + 'b""', + 'b"This is another string of bytes"', + 'b"One arg: %s"', + 'b"Three args: %s | %s | %s"', + ], 'class': [ - 'type(1)', - 'type("a")', - 'type(object())', - 'type("MyClass", (object,), {})', - ], + 'type(1)', + 'type("a")', + 'type(object())', + 'type("MyClass", (object,), {})', + ], 'complex': [ - '1j', - '3.14159265j', - '1+2j', - '3-4j', - '-5j', - ], + '1j', + '3.14159265j', + '1+2j', + '3-4j', + '-5j', + ], 'dict': [ - '{}', - '{"a": 1, "c": 2.3456, "d": "another"}', - ], + '{}', + '{"a": 1, "c": 2.3456, "d": "another"}', + ], 'float': [ - '2.3456', - '0.0', - '-3.14159', - '-4.81756', - '5.5', - '-3.5', - '4.5', - '-4.5', - ], + '2.3456', + '0.0', + '-3.14159', + '-4.81756', + '5.5', + '-3.5', + '4.5', + '-4.5', + ], 'frozenset': [ - 'frozenset()', - 'frozenset({1, 2.3456, "another"})', - ], + 'frozenset()', + 'frozenset({1, 2.3456, "another"})', + ], 'int': [ - '0', - '-5', - '-3', - '3', - '1', - ], + '0', + '-5', + '-3', + '3', + '1', + ], 'list': [ - '[]', - '[3, 4, 5]', - '[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]', - '["a","b","c"]', - ], + '[]', + '[3, 4, 5]', + '[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]', + '["a","b","c"]', + ], 'range': [ - 'range(0)', - 'range(5)', - 'range(2, 7)', - 'range(2, 7, 2)', - 'range(7, 2, -1)', - 'range(7, 2, -2)', - ], + 'range(0)', + 'range(5)', + 'range(2, 7)', + 'range(2, 7, 2)', + 'range(7, 2, -1)', + 'range(7, 2, -2)', + ], 'set': [ - 'set()', - 'set({1, 2.3456, "another"})', - ], + 'set()', + 'set({1, 2.3456, "another"})', + ], 'slice': [ - 'slice(0)', - 'slice(5)', - 'slice(2, 7)', - 'slice(2, 7, 2)', - 'slice(7, 2, -1)', - 'slice(7, 2, -2)', - ], + 'slice(0)', + 'slice(5)', + 'slice(2, 7)', + 'slice(2, 7, 2)', + 'slice(7, 2, -1)', + 'slice(7, 2, -2)', + ], 'str': [ - '""', - '"3"', - '"This is another string"', - '"Mÿ hôvèrçràft îß fûłl öf éêlś"', - '"One arg: %s"', - '"Three args: %s | %s | %s"', - ], + '""', + '"3"', + '"This is another string"', + '"Mÿ hôvèrçràft îß fûłl öf éêlś"', + '"One arg: %s"', + '"Three args: %s | %s | %s"', + ], 'tuple': [ - '(1,)', - '(1, 2)', - '(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)', - '(3, 1.2, True, )', - '(1, 2.3456, "another")', - ], + '(1,)', + '(1, 2)', + '(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)', + '(3, 1.2, True, )', + '(1, 2.3456, "another")', + ], 'None': [ - 'None', - ], + 'None', + ], 'NotImplemented': [ - 'NotImplemented', - ], + 'NotImplemented', + ], } - SAMPLE_SUBSTITUTIONS = { # Normalize set ordering "{1, 2.3456, 'another'}": [ @@ -746,6 +745,7 @@ def func(self): format=self.format, substitutions=getattr(self, 'substitutions', SAMPLE_SUBSTITUTIONS) ) + return func @@ -765,11 +765,11 @@ def assertUnaryOperation(self, x_values, operation, format, substitutions): print(type(e), ':', e) print() """ % { - 'x': x, - 'operation': operation, - 'format': format, - } - ) + 'x': x, + 'operation': operation, + 'format': format, + } + ) for x in x_values ), "Error running %s" % operation, @@ -792,6 +792,7 @@ def func(self): format=self.format, substitutions=getattr(self, 'substitutions', SAMPLE_SUBSTITUTIONS) ) + return func @@ -819,12 +820,12 @@ def assertBinaryOperation(self, x_values, y_values, operation, format, substitut print(type(e), ':', e) print() """ % { - 'x': x, - 'y': y, - 'operation': operation, - 'format': format, - } - ) + 'x': x, + 'y': y, + 'operation': operation, + 'format': format, + } + ) for x, y in data ), "Error running %s" % operation, @@ -871,6 +872,7 @@ def func(self): format=self.format, substitutions=getattr(self, 'substitutions', SAMPLE_SUBSTITUTIONS) ) + return func @@ -900,12 +902,12 @@ def assertInplaceOperation(self, x_values, y_values, operation, format, substitu print(type(e), ':', e) print() """ % { - 'x': x, - 'y': y, - 'operation': operation, - 'format': format, - } - ) + 'x': x, + 'y': y, + 'operation': operation, + 'format': format, + } + ) for x, y in data ), "Error running %s" % operation, @@ -985,6 +987,7 @@ def func(self): format=self.format, substitutions=getattr(self, 'substitutions', SAMPLE_SUBSTITUTIONS) ) + return func @@ -1011,12 +1014,12 @@ def assertBuiltinFunction(self, f_values, x_values, operation, format, substitut print(type(e), ':', e) print() """ % { - 'f': f, - 'x': x, - 'operation': operation, - 'format': format, - } - ) + 'f': f, + 'x': x, + 'operation': operation, + 'format': format, + } + ) for f, x in data ), "Error running %s" % operation, @@ -1038,6 +1041,7 @@ def func(self): format=self.format, substitutions=getattr(self, 'substitutions', SAMPLE_SUBSTITUTIONS) ) + return func @@ -1067,13 +1071,13 @@ def assertBuiltinTwoargFunction(self, f_values, x_values, y_values, operation, f print(type(e), ':', e) print() """ % { - 'f': f, - 'x': x, - 'y': y, - 'operation': operation, - 'format': format, - } - ) + 'f': f, + 'x': x, + 'y': y, + 'operation': operation, + 'format': format, + } + ) for f, x, y in data ), "Error running %s" % operation, From bbc0bd12d33c5be2bbc548b3b11a8d7608dd77f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 11:48:20 -0700 Subject: [PATCH 03/25] =?UTF-8?q?Remove=20=E2=80=9CUnexpected=20success?= =?UTF-8?q?=E2=80=9D=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These changes were auto-generated via a one-off script to remove tests that are generating “Unexpected Success”. The source for the errors was ‘https://api.travis-ci.org/jobs/234914285/log.txt?deansi=true’ --- tests/builtins/test_all.py | 1 - tests/builtins/test_callable.py | 1 - tests/builtins/test_complex.py | 1 - tests/builtins/test_delattr.py | 14 ----- tests/builtins/test_divmod.py | 11 ---- tests/builtins/test_enumerate.py | 2 - tests/builtins/test_filter.py | 11 ---- tests/builtins/test_float.py | 2 - tests/builtins/test_frozenset.py | 1 - tests/builtins/test_getattr.py | 8 --- tests/builtins/test_hasattr.py | 12 ---- tests/builtins/test_hex.py | 1 - tests/builtins/test_issubclass.py | 5 -- tests/builtins/test_map.py | 27 --------- tests/builtins/test_max.py | 1 - tests/builtins/test_next.py | 2 - tests/builtins/test_ord.py | 1 - tests/builtins/test_pow.py | 16 ------ tests/builtins/test_print.py | 1 - tests/builtins/test_property.py | 1 - tests/builtins/test_sorted.py | 2 - tests/builtins/test_zip.py | 3 - tests/datatypes/test_NoneType.py | 14 ----- tests/datatypes/test_NotImplemented.py | 17 ------ tests/datatypes/test_bool.py | 6 -- tests/datatypes/test_bytearray.py | 8 --- tests/datatypes/test_bytes.py | 33 ----------- tests/datatypes/test_complex.py | 25 --------- tests/datatypes/test_dict.py | 12 ---- tests/datatypes/test_float.py | 13 ----- tests/datatypes/test_frozenset.py | 78 -------------------------- tests/datatypes/test_int.py | 14 ----- tests/datatypes/test_list.py | 18 ------ tests/datatypes/test_range.py | 23 -------- tests/datatypes/test_set.py | 17 ------ tests/datatypes/test_slice.py | 28 --------- tests/datatypes/test_str.py | 15 ----- tests/datatypes/test_tuple.py | 12 ---- 38 files changed, 457 deletions(-) diff --git a/tests/builtins/test_all.py b/tests/builtins/test_all.py index 47d0a7e16a..082b4bc182 100644 --- a/tests/builtins/test_all.py +++ b/tests/builtins/test_all.py @@ -14,6 +14,5 @@ class BuiltinAllFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_class', 'test_dict', 'test_frozenset', - 'test_set', 'test_str', ] diff --git a/tests/builtins/test_callable.py b/tests/builtins/test_callable.py index 782d026269..fa99cb0cdf 100644 --- a/tests/builtins/test_callable.py +++ b/tests/builtins/test_callable.py @@ -10,5 +10,4 @@ class BuiltinCallableFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_class', - 'test_frozenset', ] diff --git a/tests/builtins/test_complex.py b/tests/builtins/test_complex.py index 10fa47add5..b3d2eefa9d 100644 --- a/tests/builtins/test_complex.py +++ b/tests/builtins/test_complex.py @@ -11,5 +11,4 @@ class BuiltinComplexFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_class', 'test_complex', - 'test_frozenset', ] diff --git a/tests/builtins/test_delattr.py b/tests/builtins/test_delattr.py index 11d251cedf..fc0d97d43f 100644 --- a/tests/builtins/test_delattr.py +++ b/tests/builtins/test_delattr.py @@ -61,7 +61,6 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_bool_class', 'test_bool_frozenset', - 'test_bytearray_class', 'test_bytearray_frozenset', 'test_bytes_class', @@ -70,17 +69,14 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_class_bool', 'test_class_bytearray', 'test_class_bytes', - 'test_class_class', 'test_class_complex', 'test_class_dict', 'test_class_float', 'test_class_frozenset', - 'test_class_int', 'test_class_list', 'test_class_None', 'test_class_NotImplemented', 'test_class_range', - 'test_class_set', 'test_class_slice', 'test_class_str', 'test_class_tuple', @@ -88,21 +84,13 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_complex_class', 'test_complex_frozenset', - 'test_dict_class', 'test_dict_frozenset', 'test_float_class', - 'test_float_frozenset', - 'test_frozenset_bool', - 'test_frozenset_bytearray', 'test_frozenset_bytes', 'test_frozenset_class', 'test_frozenset_complex', - 'test_frozenset_dict', - 'test_frozenset_float', - 'test_frozenset_frozenset', - 'test_frozenset_int', 'test_frozenset_list', 'test_frozenset_None', 'test_frozenset_NotImplemented', @@ -118,7 +106,6 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_list_class', 'test_list_frozenset', - 'test_None_class', 'test_None_frozenset', 'test_NotImplemented_class', @@ -127,7 +114,6 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_range_class', 'test_range_frozenset', - 'test_set_class', 'test_set_frozenset', 'test_slice_class', diff --git a/tests/builtins/test_divmod.py b/tests/builtins/test_divmod.py index ca92f31d7b..92d79e5c0a 100644 --- a/tests/builtins/test_divmod.py +++ b/tests/builtins/test_divmod.py @@ -35,7 +35,6 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT not_implemented = [ 'test_bool_class', 'test_bool_complex', - 'test_bool_frozenset', 'test_bytearray_class', 'test_bytearray_complex', @@ -60,17 +59,13 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_class_range', 'test_class_set', 'test_class_slice', - 'test_class_str', 'test_class_tuple', - 'test_complex_bool', 'test_complex_bytearray', 'test_complex_bytes', - 'test_complex_class', 'test_complex_complex', 'test_complex_dict', 'test_complex_float', - 'test_complex_frozenset', 'test_complex_int', 'test_complex_list', 'test_complex_None', @@ -94,14 +89,11 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_frozenset_bytes', 'test_frozenset_class', 'test_frozenset_complex', - 'test_frozenset_dict', 'test_frozenset_float', - 'test_frozenset_frozenset', 'test_frozenset_int', 'test_frozenset_list', 'test_frozenset_None', 'test_frozenset_NotImplemented', - 'test_frozenset_range', 'test_frozenset_set', 'test_frozenset_slice', 'test_frozenset_str', @@ -113,11 +105,9 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_list_class', 'test_list_complex', - 'test_list_frozenset', 'test_None_class', 'test_None_complex', - 'test_None_frozenset', 'test_NotImplemented_class', 'test_NotImplemented_complex', @@ -141,5 +131,4 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_tuple_class', 'test_tuple_complex', - 'test_tuple_frozenset', ] diff --git a/tests/builtins/test_enumerate.py b/tests/builtins/test_enumerate.py index ba7d61a284..e6f115d7b3 100644 --- a/tests/builtins/test_enumerate.py +++ b/tests/builtins/test_enumerate.py @@ -50,7 +50,6 @@ class BuiltinEnumerateFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["enumerate"] not_implemented = [ - 'test_bool', 'test_bytearray', 'test_bytes', 'test_class', @@ -60,7 +59,6 @@ class BuiltinEnumerateFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_frozenset', 'test_int', 'test_list', - 'test_None', 'test_NotImplemented', 'test_range', 'test_set', diff --git a/tests/builtins/test_filter.py b/tests/builtins/test_filter.py index cc64b7ac70..0e83f6cfda 100644 --- a/tests/builtins/test_filter.py +++ b/tests/builtins/test_filter.py @@ -36,7 +36,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_bytearray_bytearray', 'test_bytearray_bytes', - 'test_bytearray_class', 'test_bytearray_dict', 'test_bytearray_frozenset', 'test_bytearray_list', @@ -62,11 +61,9 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_class_class', 'test_class_complex', 'test_class_dict', - 'test_class_float', 'test_class_frozenset', 'test_class_int', 'test_class_list', - 'test_class_None', 'test_class_NotImplemented', 'test_class_range', 'test_class_set', @@ -117,8 +114,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_frozenset_frozenset', 'test_frozenset_int', 'test_frozenset_list', - 'test_frozenset_None', - 'test_frozenset_NotImplemented', 'test_frozenset_range', 'test_frozenset_set', 'test_frozenset_slice', @@ -127,7 +122,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_int_bytearray', 'test_int_bytes', - 'test_int_class', 'test_int_dict', 'test_int_frozenset', 'test_int_list', @@ -148,14 +142,10 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_list_tuple', 'test_None_bytearray', - 'test_None_bytes', 'test_None_class', - 'test_None_dict', 'test_None_frozenset', - 'test_None_list', 'test_None_range', 'test_None_set', - 'test_None_str', 'test_None_tuple', 'test_NotImplemented_bytearray', @@ -171,7 +161,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_range_bytearray', 'test_range_bytes', - 'test_range_class', 'test_range_dict', 'test_range_frozenset', 'test_range_list', diff --git a/tests/builtins/test_float.py b/tests/builtins/test_float.py index 33a5e436e0..ea7ee38fa3 100644 --- a/tests/builtins/test_float.py +++ b/tests/builtins/test_float.py @@ -11,7 +11,5 @@ class BuiltinFloatFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_class', 'test_complex', - 'test_frozenset', ] diff --git a/tests/builtins/test_frozenset.py b/tests/builtins/test_frozenset.py index 271ef02d77..7399e9f839 100644 --- a/tests/builtins/test_frozenset.py +++ b/tests/builtins/test_frozenset.py @@ -12,7 +12,6 @@ class BuiltinFrozensetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_bool', 'test_bytearray', 'test_bytes', - 'test_class', 'test_complex', 'test_dict', 'test_float', diff --git a/tests/builtins/test_getattr.py b/tests/builtins/test_getattr.py index 896ace3c71..6e4f2731d9 100644 --- a/tests/builtins/test_getattr.py +++ b/tests/builtins/test_getattr.py @@ -52,8 +52,6 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_bytes_class', 'test_bytes_frozenset', - 'test_class_bool', - 'test_class_bytearray', 'test_class_bytes', 'test_class_class', 'test_class_complex', @@ -68,7 +66,6 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_class_set', 'test_class_slice', 'test_class_str', - 'test_class_tuple', 'test_complex_class', 'test_complex_frozenset', @@ -82,7 +79,6 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_frozenset_bool', 'test_frozenset_bytearray', 'test_frozenset_bytes', - 'test_frozenset_class', 'test_frozenset_complex', 'test_frozenset_dict', 'test_frozenset_float', @@ -91,13 +87,10 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_frozenset_list', 'test_frozenset_None', 'test_frozenset_NotImplemented', - 'test_frozenset_range', - 'test_frozenset_set', 'test_frozenset_slice', 'test_frozenset_str', 'test_frozenset_tuple', - 'test_int_class', 'test_int_frozenset', 'test_list_class', @@ -119,7 +112,6 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_slice_frozenset', 'test_str_class', - 'test_str_frozenset', 'test_tuple_class', 'test_tuple_frozenset', diff --git a/tests/builtins/test_hasattr.py b/tests/builtins/test_hasattr.py index 2d27965de7..5588b43d29 100644 --- a/tests/builtins/test_hasattr.py +++ b/tests/builtins/test_hasattr.py @@ -34,43 +34,34 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa functions = ["hasattr"] not_implemented = [ - 'test_bool_class', 'test_bool_frozenset', 'test_bytearray_class', 'test_bytearray_frozenset', 'test_bytes_class', - 'test_bytes_frozenset', - 'test_class_bool', 'test_class_bytearray', 'test_class_bytes', 'test_class_class', 'test_class_complex', 'test_class_dict', 'test_class_float', - 'test_class_frozenset', - 'test_class_int', 'test_class_list', 'test_class_None', 'test_class_NotImplemented', 'test_class_range', 'test_class_set', - 'test_class_slice', 'test_class_str', 'test_class_tuple', 'test_complex_class', - 'test_complex_frozenset', 'test_dict_class', 'test_dict_frozenset', - 'test_float_class', 'test_float_frozenset', - 'test_frozenset_bool', 'test_frozenset_bytearray', 'test_frozenset_bytes', 'test_frozenset_class', @@ -88,7 +79,6 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_frozenset_str', 'test_frozenset_tuple', - 'test_int_class', 'test_int_frozenset', 'test_list_class', @@ -98,13 +88,11 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_None_frozenset', 'test_NotImplemented_class', - 'test_NotImplemented_frozenset', 'test_range_class', 'test_range_frozenset', 'test_set_class', - 'test_set_frozenset', 'test_slice_class', 'test_slice_frozenset', diff --git a/tests/builtins/test_hex.py b/tests/builtins/test_hex.py index 5ac308e550..f383a4674b 100644 --- a/tests/builtins/test_hex.py +++ b/tests/builtins/test_hex.py @@ -9,6 +9,5 @@ class BuiltinHexFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["hex"] not_implemented = [ - 'test_class', 'test_frozenset', ] diff --git a/tests/builtins/test_issubclass.py b/tests/builtins/test_issubclass.py index aeecab57b8..12388671c1 100644 --- a/tests/builtins/test_issubclass.py +++ b/tests/builtins/test_issubclass.py @@ -96,15 +96,10 @@ class BuiltinIssubclassFunctionTests(BuiltinFunctionTestCase, TranspileTestCase) 'test_bool', 'test_bytearray', 'test_bytes', - 'test_class', 'test_complex', 'test_dict', - 'test_float', - 'test_frozenset', 'test_int', - 'test_list', 'test_None', - 'test_NotImplemented', 'test_range', 'test_set', 'test_slice', diff --git a/tests/builtins/test_map.py b/tests/builtins/test_map.py index d73b07e5f2..b415c793ac 100644 --- a/tests/builtins/test_map.py +++ b/tests/builtins/test_map.py @@ -35,10 +35,7 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bool_bytearray', - 'test_bool_bytes', - 'test_bool_class', 'test_bool_dict', - 'test_bool_frozenset', 'test_bool_set', 'test_bool_str', @@ -51,25 +48,18 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_bytearray_str', 'test_bytes_bytearray', - 'test_bytes_bytes', - 'test_bytes_class', 'test_bytes_dict', 'test_bytes_frozenset', 'test_bytes_set', 'test_bytes_str', - 'test_class_bool', 'test_class_bytearray', - 'test_class_bytes', 'test_class_class', - 'test_class_complex', 'test_class_dict', 'test_class_float', 'test_class_frozenset', 'test_class_int', - 'test_class_list', 'test_class_None', - 'test_class_NotImplemented', 'test_class_range', 'test_class_set', 'test_class_slice', @@ -80,7 +70,6 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_complex_bytes', 'test_complex_class', 'test_complex_dict', - 'test_complex_frozenset', 'test_complex_set', 'test_complex_str', @@ -89,7 +78,6 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_dict_class', 'test_dict_dict', 'test_dict_frozenset', - 'test_dict_set', 'test_dict_str', 'test_float_bytearray', @@ -97,15 +85,11 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_float_class', 'test_float_dict', 'test_float_frozenset', - 'test_float_set', 'test_float_str', 'test_frozenset_bool', 'test_frozenset_bytearray', - 'test_frozenset_bytes', 'test_frozenset_class', - 'test_frozenset_complex', - 'test_frozenset_dict', 'test_frozenset_float', 'test_frozenset_frozenset', 'test_frozenset_int', @@ -114,7 +98,6 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_frozenset_NotImplemented', 'test_frozenset_range', 'test_frozenset_set', - 'test_frozenset_slice', 'test_frozenset_str', 'test_frozenset_tuple', @@ -131,40 +114,31 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_list_class', 'test_list_dict', 'test_list_frozenset', - 'test_list_set', 'test_list_str', 'test_None_bytearray', 'test_None_bytes', 'test_None_class', - 'test_None_dict', 'test_None_frozenset', 'test_None_set', 'test_None_str', 'test_NotImplemented_bytearray', - 'test_NotImplemented_bytes', 'test_NotImplemented_class', - 'test_NotImplemented_dict', 'test_NotImplemented_frozenset', - 'test_NotImplemented_set', 'test_NotImplemented_str', 'test_range_bytearray', 'test_range_bytes', 'test_range_class', 'test_range_dict', - 'test_range_frozenset', - 'test_range_set', 'test_range_str', 'test_set_bytearray', 'test_set_bytes', 'test_set_class', 'test_set_dict', - 'test_set_frozenset', 'test_set_set', - 'test_set_str', 'test_slice_bytearray', 'test_slice_bytes', @@ -184,7 +158,6 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_tuple_bytearray', 'test_tuple_bytes', - 'test_tuple_class', 'test_tuple_dict', 'test_tuple_frozenset', 'test_tuple_set', diff --git a/tests/builtins/test_max.py b/tests/builtins/test_max.py index 5301c01a8e..9191cd130c 100644 --- a/tests/builtins/test_max.py +++ b/tests/builtins/test_max.py @@ -77,6 +77,5 @@ class BuiltinMaxFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_bytearray', 'test_bytes', 'test_frozenset', - 'test_set', 'test_tuple', ] diff --git a/tests/builtins/test_next.py b/tests/builtins/test_next.py index 8797f17cae..5656b0b0fd 100644 --- a/tests/builtins/test_next.py +++ b/tests/builtins/test_next.py @@ -35,7 +35,5 @@ class BuiltinNextFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["next"] not_implemented = [ - 'test_class', 'test_frozenset', - 'test_range', ] diff --git a/tests/builtins/test_ord.py b/tests/builtins/test_ord.py index f6bbff3d04..6d5a970c92 100644 --- a/tests/builtins/test_ord.py +++ b/tests/builtins/test_ord.py @@ -11,6 +11,5 @@ class BuiltinOrdFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytes', 'test_bytearray', - 'test_class', 'test_frozenset', ] diff --git a/tests/builtins/test_pow.py b/tests/builtins/test_pow.py index 7041aa6c48..0b6dc3cdde 100644 --- a/tests/builtins/test_pow.py +++ b/tests/builtins/test_pow.py @@ -115,8 +115,6 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_bool_complex', 'test_bool_frozenset', - 'test_bytearray_class', - 'test_bytearray_frozenset', 'test_bytes_class', 'test_bytes_frozenset', @@ -125,7 +123,6 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_class_bytearray', 'test_class_bytes', 'test_class_class', - 'test_class_complex', 'test_class_dict', 'test_class_float', 'test_class_frozenset', @@ -133,7 +130,6 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_class_slice', 'test_class_int', 'test_class_list', - 'test_class_None', 'test_class_NotImplemented', 'test_class_set', 'test_class_str', @@ -141,10 +137,8 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_complex_bool', 'test_complex_bytearray', - 'test_complex_bytes', 'test_complex_class', 'test_complex_complex', - 'test_complex_dict', 'test_complex_float', 'test_complex_frozenset', 'test_complex_range', @@ -154,16 +148,12 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_complex_None', 'test_complex_NotImplemented', 'test_complex_set', - 'test_complex_str', 'test_complex_tuple', 'test_dict_class', - 'test_dict_frozenset', - 'test_float_class', 'test_float_complex', 'test_float_float', - 'test_float_frozenset', 'test_frozenset_bool', 'test_frozenset_bytearray', @@ -174,7 +164,6 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_frozenset_float', 'test_frozenset_frozenset', 'test_frozenset_range', - 'test_frozenset_slice', 'test_frozenset_int', 'test_frozenset_list', 'test_frozenset_None', @@ -188,14 +177,11 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_int_float', 'test_int_frozenset', - 'test_list_class', 'test_list_frozenset', 'test_None_class', 'test_None_frozenset', - 'test_NotImplemented_class', - 'test_NotImplemented_frozenset', 'test_range_class', 'test_range_frozenset', @@ -206,9 +192,7 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_slice_class', 'test_slice_frozenset', - 'test_str_class', 'test_str_frozenset', 'test_tuple_class', - 'test_tuple_frozenset', ] diff --git a/tests/builtins/test_print.py b/tests/builtins/test_print.py index d532ee122c..390af4df7b 100644 --- a/tests/builtins/test_print.py +++ b/tests/builtins/test_print.py @@ -61,6 +61,5 @@ class BuiltinPrintFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_class', - 'test_frozenset', 'test_slice', ] diff --git a/tests/builtins/test_property.py b/tests/builtins/test_property.py index a45f0cceea..72310d6663 100644 --- a/tests/builtins/test_property.py +++ b/tests/builtins/test_property.py @@ -9,6 +9,5 @@ class BuiltinPropertyFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["property"] not_implemented = [ - 'test_class', 'test_frozenset', ] diff --git a/tests/builtins/test_sorted.py b/tests/builtins/test_sorted.py index 1c2b62eb69..d1b80a12c9 100644 --- a/tests/builtins/test_sorted.py +++ b/tests/builtins/test_sorted.py @@ -28,9 +28,7 @@ class BuiltinSortedFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_class', 'test_dict', 'test_frozenset', - 'test_str', 'test_set', ] diff --git a/tests/builtins/test_zip.py b/tests/builtins/test_zip.py index bb3da610ff..daf67c2145 100644 --- a/tests/builtins/test_zip.py +++ b/tests/builtins/test_zip.py @@ -35,17 +35,14 @@ class BuiltinZipFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["zip"] not_implemented = [ - 'test_bool', 'test_bytearray', 'test_bytes', 'test_class', 'test_complex', 'test_dict', - 'test_float', 'test_frozenset', 'test_int', 'test_list', - 'test_None', 'test_NotImplemented', 'test_range', 'test_set', diff --git a/tests/datatypes/test_NoneType.py b/tests/datatypes/test_NoneType.py index ed761e808c..91055f20ce 100644 --- a/tests/datatypes/test_NoneType.py +++ b/tests/datatypes/test_NoneType.py @@ -30,21 +30,16 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_class', - 'test_add_frozenset', - 'test_and_class', - 'test_and_frozenset', 'test_direct_ne_bool', 'test_direct_ne_bytearray', - 'test_direct_ne_bytes', 'test_direct_ne_class', 'test_direct_ne_complex', 'test_direct_ne_dict', 'test_direct_ne_float', 'test_direct_ne_frozenset', 'test_direct_ne_int', - 'test_direct_ne_list', 'test_direct_ne_NotImplemented', 'test_direct_ne_range', 'test_direct_ne_set', @@ -52,9 +47,6 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ne_str', 'test_direct_ne_tuple', - 'test_direct_eq_bytes', - 'test_direct_ge_bytes', - 'test_direct_gt_bytes', 'test_direct_le_bytes', 'test_direct_lt_bytes', @@ -84,7 +76,6 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytes', 'test_multiply_bytearray', @@ -98,7 +89,6 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_or_frozenset', 'test_power_class', - 'test_power_frozenset', 'test_rshift_class', 'test_rshift_frozenset', @@ -125,7 +115,6 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', 'test_floor_divide_class', 'test_floor_divide_complex', @@ -134,7 +123,6 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) 'test_lshift_class', 'test_lshift_frozenset', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_frozenset', @@ -146,7 +134,6 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) 'test_multiply_str', 'test_multiply_tuple', - 'test_or_class', 'test_or_frozenset', 'test_power_class', @@ -159,7 +146,6 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) 'test_subtract_frozenset', 'test_true_divide_class', - 'test_true_divide_frozenset', 'test_xor_class', 'test_xor_frozenset', diff --git a/tests/datatypes/test_NotImplemented.py b/tests/datatypes/test_NotImplemented.py index df4296dac7..e2b99dd0f3 100644 --- a/tests/datatypes/test_NotImplemented.py +++ b/tests/datatypes/test_NotImplemented.py @@ -24,10 +24,7 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_and_frozenset', 'test_direct_eq_bytes', - 'test_direct_ge_bytes', 'test_direct_gt_bytes', - 'test_direct_le_bytes', - 'test_direct_lt_bytes', 'test_direct_ne_bytes', 'test_direct_eq_frozenset', @@ -38,13 +35,11 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_direct_ne_frozenset', 'test_eq_class', - 'test_eq_frozenset', 'test_ge_class', 'test_ge_frozenset', 'test_gt_class', - 'test_gt_frozenset', 'test_le_class', 'test_le_frozenset', @@ -61,7 +56,6 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_multiply_bytes', 'test_multiply_bytearray', - 'test_multiply_class', 'test_multiply_frozenset', 'test_ne_class', @@ -70,22 +64,15 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_or_class', 'test_or_frozenset', - 'test_power_class', - 'test_power_frozenset', 'test_rshift_class', - 'test_rshift_frozenset', - 'test_subscr_class', 'test_subscr_frozenset', - 'test_subtract_class', 'test_subtract_frozenset', 'test_true_divide_class', - 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', ] @@ -105,8 +92,6 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_eq_complex', 'test_eq_frozenset', - 'test_floor_divide_class', - 'test_floor_divide_complex', 'test_floor_divide_frozenset', 'test_ge_bytearray', @@ -125,7 +110,6 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_le_frozenset', 'test_lshift_class', - 'test_lshift_frozenset', 'test_lt_bytearray', 'test_lt_class', @@ -170,6 +154,5 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_true_divide_class', 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_bool.py b/tests/datatypes/test_bool.py index 1b84fffbe3..ee4a6143ae 100644 --- a/tests/datatypes/test_bool.py +++ b/tests/datatypes/test_bool.py @@ -40,14 +40,12 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_class', 'test_and_frozenset', - 'test_direct_eq_bytes', 'test_direct_ge_bytes', 'test_direct_gt_bytes', 'test_direct_le_bytes', 'test_direct_lt_bytes', 'test_direct_ne_bytes', - 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', @@ -72,7 +70,6 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lt_class', 'test_lt_frozenset', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_frozenset', @@ -88,7 +85,6 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_class', 'test_power_complex', - 'test_power_frozenset', 'test_rshift_class', 'test_rshift_frozenset', @@ -150,7 +146,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_and_int', 'test_floor_divide_bool', - 'test_floor_divide_class', 'test_floor_divide_complex', 'test_floor_divide_float', 'test_floor_divide_frozenset', @@ -207,6 +202,5 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_true_divide_int', 'test_xor_class', - 'test_xor_frozenset', 'test_xor_int', ] diff --git a/tests/datatypes/test_bytearray.py b/tests/datatypes/test_bytearray.py index 6ffb7ed50d..86707ba9f1 100644 --- a/tests/datatypes/test_bytearray.py +++ b/tests/datatypes/test_bytearray.py @@ -42,11 +42,9 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', 'test_direct_ne_frozenset', 'test_eq_class', - 'test_eq_frozenset', 'test_ge_class', 'test_ge_frozenset', @@ -68,7 +66,6 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_frozenset', 'test_multiply_class', - 'test_multiply_frozenset', 'test_ne_class', 'test_ne_frozenset', @@ -108,29 +105,24 @@ class InplaceBytearrayOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_floor_divide_class', 'test_floor_divide_complex', - 'test_floor_divide_frozenset', 'test_lshift_class', - 'test_lshift_frozenset', 'test_modulo_class', 'test_modulo_complex', 'test_modulo_frozenset', 'test_multiply_class', - 'test_multiply_frozenset', 'test_or_class', 'test_or_frozenset', 'test_power_class', - 'test_power_frozenset', 'test_rshift_class', 'test_rshift_frozenset', 'test_subtract_class', - 'test_subtract_frozenset', 'test_true_divide_class', 'test_true_divide_frozenset', diff --git a/tests/datatypes/test_bytes.py b/tests/datatypes/test_bytes.py index e4db0567aa..e5117e6925 100644 --- a/tests/datatypes/test_bytes.py +++ b/tests/datatypes/test_bytes.py @@ -65,29 +65,23 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_eq_bytearray', 'test_direct_eq_bytes', 'test_direct_eq_class', - 'test_direct_eq_complex', 'test_direct_eq_dict', 'test_direct_eq_float', 'test_direct_eq_frozenset', 'test_direct_eq_int', - 'test_direct_eq_list', 'test_direct_eq_none', 'test_direct_eq_set', - 'test_direct_eq_str', 'test_direct_eq_tuple', 'test_direct_ge_bool', 'test_direct_ge_bytearray', 'test_direct_ge_bytes', - 'test_direct_ge_class', 'test_direct_ge_complex', 'test_direct_ge_dict', - 'test_direct_ge_float', 'test_direct_ge_frozenset', 'test_direct_ge_int', 'test_direct_ge_list', 'test_direct_ge_none', - 'test_direct_ge_set', 'test_direct_ge_str', 'test_direct_ge_tuple', @@ -97,7 +91,6 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_gt_class', 'test_direct_gt_complex', 'test_direct_gt_dict', - 'test_direct_gt_float', 'test_direct_gt_frozenset', 'test_direct_gt_int', 'test_direct_gt_list', @@ -108,10 +101,8 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_le_bool', 'test_direct_le_bytearray', - 'test_direct_le_bytes', 'test_direct_le_class', 'test_direct_le_complex', - 'test_direct_le_dict', 'test_direct_le_float', 'test_direct_le_frozenset', 'test_direct_le_int', @@ -123,25 +114,19 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_lt_bool', 'test_direct_lt_bytearray', - 'test_direct_lt_bytes', 'test_direct_lt_class', 'test_direct_lt_complex', 'test_direct_lt_dict', 'test_direct_lt_float', - 'test_direct_lt_frozenset', 'test_direct_lt_int', 'test_direct_lt_list', 'test_direct_lt_none', - 'test_direct_lt_set', - 'test_direct_lt_str', 'test_direct_lt_tuple', 'test_direct_ne_bool', 'test_direct_ne_bytearray', 'test_direct_ne_bytes', - 'test_direct_ne_class', 'test_direct_ne_complex', - 'test_direct_ne_dict', 'test_direct_ne_float', 'test_direct_ne_frozenset', 'test_direct_ne_int', @@ -155,11 +140,9 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', 'test_direct_ne_frozenset', 'test_eq_bytearray', - 'test_eq_bytes', 'test_eq_class', 'test_eq_frozenset', @@ -167,10 +150,8 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_frozenset', 'test_ge_class', - 'test_ge_frozenset', 'test_gt_class', - 'test_gt_frozenset', 'test_le_class', 'test_le_frozenset', @@ -183,17 +164,13 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_None', 'test_modulo_NotImplemented', - 'test_modulo_bool', 'test_modulo_bytearray', 'test_modulo_bytes', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_dict', 'test_modulo_float', - 'test_modulo_frozenset', 'test_modulo_int', 'test_modulo_list', - 'test_modulo_range', 'test_modulo_set', 'test_modulo_slice', 'test_modulo_str', @@ -205,23 +182,18 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_or_class', 'test_or_frozenset', - 'test_power_class', 'test_power_frozenset', 'test_rshift_class', 'test_rshift_frozenset', 'test_subscr_class', - 'test_subscr_frozenset', 'test_subtract_class', 'test_subtract_frozenset', - 'test_true_divide_class', 'test_true_divide_frozenset', - 'test_xor_class', - 'test_xor_frozenset', ] @@ -229,15 +201,12 @@ class InplaceBytesOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'bytes' not_implemented = [ - 'test_add_class', - 'test_add_frozenset', 'test_and_class', 'test_and_frozenset', 'test_floor_divide_class', 'test_floor_divide_complex', - 'test_floor_divide_frozenset', 'test_lshift_class', 'test_lshift_frozenset', @@ -278,6 +247,4 @@ class InplaceBytesOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_true_divide_class', 'test_true_divide_frozenset', - 'test_xor_class', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_complex.py b/tests/datatypes/test_complex.py index ed21fc4286..dbc0ce6f76 100644 --- a/tests/datatypes/test_complex.py +++ b/tests/datatypes/test_complex.py @@ -65,7 +65,6 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_class', - 'test_add_frozenset', 'test_and_class', 'test_and_frozenset', @@ -75,9 +74,7 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', - 'test_direct_ne_frozenset', - 'test_direct_eq_bool', 'test_direct_eq_float', 'test_direct_eq_int', @@ -95,7 +92,6 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ge_frozenset', 'test_gt_class', - 'test_gt_frozenset', 'test_le_class', 'test_le_frozenset', @@ -110,13 +106,11 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_frozenset', 'test_multiply_class', - 'test_multiply_frozenset', 'test_ne_class', 'test_ne_frozenset', 'test_or_class', - 'test_or_frozenset', 'test_power_class', 'test_power_frozenset', @@ -127,7 +121,6 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_class', 'test_subscr_frozenset', - 'test_subtract_class', 'test_subtract_frozenset', 'test_true_divide_class', @@ -265,7 +258,6 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_lshift_None', 'test_lshift_NotImplemented', 'test_lshift_slice', - 'test_lshift_range', 'test_lshift_bool', 'test_lshift_bytearray', 'test_lshift_bytes', @@ -277,9 +269,7 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_lshift_int', 'test_lshift_list', 'test_lshift_none', - 'test_lshift_set', 'test_lshift_str', - 'test_lshift_tuple', 'test_lt_None', 'test_lt_NotImplemented', @@ -322,7 +312,6 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_bool', 'test_multiply_bytearray', 'test_multiply_bytes', - 'test_multiply_class', 'test_multiply_complex', 'test_multiply_float', 'test_multiply_frozenset', @@ -351,15 +340,12 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_ne_str', 'test_ne_tuple', - 'test_or_class', 'test_or_frozenset', - 'test_power_None', 'test_power_NotImplemented', 'test_power_slice', 'test_power_range', 'test_power_bool', - 'test_power_bytearray', 'test_power_bytes', 'test_power_class', 'test_power_complex', @@ -376,15 +362,8 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_rshift_None', 'test_rshift_NotImplemented', 'test_rshift_slice', - 'test_rshift_range', - 'test_rshift_bool', 'test_rshift_bytearray', - 'test_rshift_bytes', - 'test_rshift_class', 'test_rshift_complex', - 'test_rshift_dict', - 'test_rshift_float', - 'test_rshift_frozenset', 'test_rshift_int', 'test_rshift_list', 'test_rshift_none', @@ -418,8 +397,6 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_subtract_frozenset', 'test_subtract_int', - 'test_true_divide_None', - 'test_true_divide_NotImplemented', 'test_true_divide_slice', 'test_true_divide_range', 'test_true_divide_bool', @@ -434,9 +411,7 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_true_divide_list', 'test_true_divide_none', 'test_true_divide_set', - 'test_true_divide_str', 'test_true_divide_tuple', 'test_xor_class', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_dict.py b/tests/datatypes/test_dict.py index b4d863a163..a43a5d52ae 100644 --- a/tests/datatypes/test_dict.py +++ b/tests/datatypes/test_dict.py @@ -305,7 +305,6 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'dict' not_implemented = [ - 'test_add_class', 'test_add_frozenset', 'test_and_class', @@ -315,13 +314,10 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ge_bytes', 'test_direct_gt_bytes', 'test_direct_le_bytes', - 'test_direct_lt_bytes', - 'test_direct_ne_bytes', 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', - 'test_direct_le_frozenset', 'test_direct_lt_frozenset', 'test_direct_ne_frozenset', @@ -338,7 +334,6 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_frozenset', 'test_lshift_class', - 'test_lshift_frozenset', 'test_lt_class', 'test_lt_frozenset', @@ -360,7 +355,6 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_class', 'test_power_frozenset', - 'test_rshift_class', 'test_rshift_frozenset', 'test_subscr_bytearray', @@ -369,7 +363,6 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_frozenset', 'test_subscr_slice', - 'test_subtract_class', 'test_subtract_frozenset', 'test_true_divide_class', @@ -387,10 +380,8 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_class', 'test_add_frozenset', - 'test_and_class', 'test_and_frozenset', - 'test_floor_divide_class', 'test_floor_divide_complex', 'test_floor_divide_frozenset', @@ -401,7 +392,6 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_complex', 'test_modulo_frozenset', - 'test_multiply_class', 'test_multiply_frozenset', 'test_or_class', @@ -410,7 +400,6 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_class', 'test_power_frozenset', - 'test_rshift_class', 'test_rshift_frozenset', 'test_subtract_class', @@ -419,6 +408,5 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_true_divide_class', 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_float.py b/tests/datatypes/test_float.py index 669f20bd76..637a959bba 100644 --- a/tests/datatypes/test_float.py +++ b/tests/datatypes/test_float.py @@ -108,14 +108,12 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'float' not_implemented = [ - 'test_add_class', 'test_add_frozenset', 'test_and_class', 'test_and_frozenset', 'test_direct_eq_bytes', - 'test_direct_ge_bytes', 'test_direct_gt_bytes', 'test_direct_le_bytes', 'test_direct_lt_bytes', @@ -126,10 +124,8 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', - 'test_direct_ne_frozenset', 'test_eq_class', - 'test_eq_frozenset', 'test_ge_class', 'test_ge_frozenset', @@ -159,9 +155,7 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_range', 'test_ne_class', - 'test_ne_frozenset', - 'test_or_class', 'test_or_frozenset', 'test_power_class', @@ -190,7 +184,6 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_str', 'test_subscr_tuple', - 'test_subtract_class', 'test_subtract_complex', 'test_subtract_frozenset', @@ -198,7 +191,6 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_true_divide_complex', 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', ] @@ -215,7 +207,6 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_and_frozenset', 'test_floor_divide_class', - 'test_floor_divide_complex', 'test_floor_divide_frozenset', 'test_lshift_class', @@ -249,12 +240,8 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_subtract_class', 'test_subtract_complex', - 'test_subtract_frozenset', - 'test_true_divide_class', 'test_true_divide_complex', - 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_frozenset.py b/tests/datatypes/test_frozenset.py index 774139735f..ab612a6c79 100644 --- a/tests/datatypes/test_frozenset.py +++ b/tests/datatypes/test_frozenset.py @@ -333,7 +333,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_class', - 'test_direct_eq_bool', 'test_direct_eq_bytearray', 'test_direct_eq_bytes', 'test_direct_eq_class', @@ -342,37 +341,27 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_eq_float', 'test_direct_eq_frozenset', 'test_direct_eq_int', - 'test_direct_eq_list', - 'test_direct_eq_None', - 'test_direct_eq_NotImplemented', 'test_direct_eq_range', - 'test_direct_eq_set', 'test_direct_eq_slice', - 'test_direct_eq_str', 'test_direct_eq_tuple', 'test_direct_ne_bool', 'test_direct_ne_bytearray', 'test_direct_ne_bytes', 'test_direct_ne_class', - 'test_direct_ne_complex', 'test_direct_ne_dict', 'test_direct_ne_float', 'test_direct_ne_frozenset', 'test_direct_ne_int', - 'test_direct_ne_list', 'test_direct_ne_None', 'test_direct_ne_NotImplemented', 'test_direct_ne_range', 'test_direct_ne_set', - 'test_direct_ne_slice', 'test_direct_ne_str', 'test_direct_ne_tuple', 'test_direct_le_bool', 'test_direct_le_bytearray', - 'test_direct_le_bytes', - 'test_direct_le_class', 'test_direct_le_complex', 'test_direct_le_dict', 'test_direct_le_float', @@ -382,9 +371,7 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_le_None', 'test_direct_le_NotImplemented', 'test_direct_le_range', - 'test_direct_le_set', 'test_direct_le_slice', - 'test_direct_le_str', 'test_direct_le_tuple', 'test_direct_lt_bool', @@ -392,7 +379,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_lt_bytes', 'test_direct_lt_class', 'test_direct_lt_complex', - 'test_direct_lt_dict', 'test_direct_lt_float', 'test_direct_lt_frozenset', 'test_direct_lt_int', @@ -400,7 +386,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_lt_None', 'test_direct_lt_NotImplemented', 'test_direct_lt_range', - 'test_direct_lt_set', 'test_direct_lt_slice', 'test_direct_lt_str', 'test_direct_lt_tuple', @@ -415,24 +400,15 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ge_frozenset', 'test_direct_ge_int', 'test_direct_ge_list', - 'test_direct_ge_None', - 'test_direct_ge_NotImplemented', - 'test_direct_ge_range', - 'test_direct_ge_set', - 'test_direct_ge_slice', 'test_direct_ge_str', 'test_direct_ge_tuple', 'test_direct_gt_bool', - 'test_direct_gt_bytearray', - 'test_direct_gt_bytes', 'test_direct_gt_class', 'test_direct_gt_complex', 'test_direct_gt_dict', 'test_direct_gt_float', - 'test_direct_gt_frozenset', 'test_direct_gt_int', - 'test_direct_gt_list', 'test_direct_gt_None', 'test_direct_gt_NotImplemented', 'test_direct_gt_range', @@ -453,9 +429,7 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_floor_divide_int', 'test_floor_divide_list', 'test_floor_divide_None', - 'test_floor_divide_NotImplemented', 'test_floor_divide_range', - 'test_floor_divide_set', 'test_floor_divide_slice', 'test_floor_divide_str', 'test_floor_divide_tuple', @@ -466,7 +440,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', - 'test_lshift_bool', 'test_lshift_bytearray', 'test_lshift_bytes', 'test_lshift_class', @@ -486,8 +459,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lt_class', - 'test_modulo_bool', - 'test_modulo_bytearray', 'test_modulo_bytes', 'test_modulo_class', 'test_modulo_complex', @@ -506,7 +477,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_class', - 'test_ne_bool', 'test_ne_bytearray', 'test_ne_bytes', 'test_ne_class', @@ -514,17 +484,12 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_dict', 'test_ne_float', 'test_ne_frozenset', - 'test_ne_int', - 'test_ne_list', 'test_ne_None', 'test_ne_NotImplemented', 'test_ne_range', 'test_ne_set', - 'test_ne_slice', 'test_ne_str', - 'test_ne_tuple', - 'test_or_class', 'test_power_bool', 'test_power_bytearray', @@ -541,7 +506,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_range', 'test_power_set', 'test_power_slice', - 'test_power_str', 'test_power_tuple', 'test_rshift_bool', @@ -550,17 +514,12 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_rshift_class', 'test_rshift_complex', 'test_rshift_dict', - 'test_rshift_float', 'test_rshift_frozenset', - 'test_rshift_int', 'test_rshift_list', 'test_rshift_None', 'test_rshift_NotImplemented', - 'test_rshift_range', 'test_rshift_set', 'test_rshift_slice', - 'test_rshift_str', - 'test_rshift_tuple', 'test_subscr_bool', 'test_subscr_bytearray', @@ -589,7 +548,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_true_divide_complex', 'test_true_divide_dict', 'test_true_divide_float', - 'test_true_divide_frozenset', 'test_true_divide_int', 'test_true_divide_list', 'test_true_divide_None', @@ -597,7 +555,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_true_divide_range', 'test_true_divide_set', 'test_true_divide_slice', - 'test_true_divide_str', 'test_true_divide_tuple', 'test_xor_class', @@ -609,11 +566,9 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase not_implemented = [ 'test_add_bool', - 'test_add_bytearray', 'test_add_bytes', 'test_add_class', 'test_add_complex', - 'test_add_dict', 'test_add_float', 'test_add_frozenset', 'test_add_int', @@ -630,12 +585,9 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_and_bytearray', 'test_and_bytes', 'test_and_class', - 'test_and_complex', 'test_and_dict', 'test_and_float', 'test_and_frozenset', - 'test_and_int', - 'test_and_list', 'test_and_None', 'test_and_NotImplemented', 'test_and_range', @@ -644,11 +596,8 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_and_str', 'test_and_tuple', - 'test_floor_divide_bool', 'test_floor_divide_bytearray', - 'test_floor_divide_bytes', 'test_floor_divide_class', - 'test_floor_divide_complex', 'test_floor_divide_dict', 'test_floor_divide_float', 'test_floor_divide_frozenset', @@ -660,7 +609,6 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_floor_divide_set', 'test_floor_divide_slice', 'test_floor_divide_str', - 'test_floor_divide_tuple', 'test_lshift_bool', 'test_lshift_bytearray', @@ -668,17 +616,11 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_lshift_class', 'test_lshift_complex', 'test_lshift_dict', - 'test_lshift_float', 'test_lshift_frozenset', 'test_lshift_int', - 'test_lshift_list', - 'test_lshift_None', 'test_lshift_NotImplemented', - 'test_lshift_range', 'test_lshift_set', - 'test_lshift_slice', 'test_lshift_str', - 'test_lshift_tuple', 'test_modulo_bool', 'test_modulo_bytearray', @@ -686,15 +628,11 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_modulo_class', 'test_modulo_complex', 'test_modulo_dict', - 'test_modulo_float', 'test_modulo_frozenset', 'test_modulo_int', 'test_modulo_list', - 'test_modulo_None', - 'test_modulo_NotImplemented', 'test_modulo_range', 'test_modulo_set', - 'test_modulo_slice', 'test_modulo_str', 'test_modulo_tuple', @@ -703,13 +641,11 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_multiply_bytes', 'test_multiply_class', 'test_multiply_complex', - 'test_multiply_dict', 'test_multiply_float', 'test_multiply_frozenset', 'test_multiply_int', 'test_multiply_list', 'test_multiply_None', - 'test_multiply_NotImplemented', 'test_multiply_range', 'test_multiply_set', 'test_multiply_slice', @@ -722,23 +658,19 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_or_class', 'test_or_complex', 'test_or_dict', - 'test_or_float', 'test_or_frozenset', - 'test_or_int', 'test_or_list', 'test_or_None', 'test_or_NotImplemented', 'test_or_range', 'test_or_set', 'test_or_slice', - 'test_or_str', 'test_or_tuple', 'test_power_bool', 'test_power_bytearray', 'test_power_bytes', 'test_power_class', - 'test_power_complex', 'test_power_dict', 'test_power_float', 'test_power_frozenset', @@ -757,7 +689,6 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_rshift_bytes', 'test_rshift_class', 'test_rshift_complex', - 'test_rshift_dict', 'test_rshift_float', 'test_rshift_frozenset', 'test_rshift_int', @@ -767,28 +698,24 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_rshift_range', 'test_rshift_set', 'test_rshift_slice', - 'test_rshift_str', 'test_rshift_tuple', 'test_subtract_bool', 'test_subtract_bytearray', 'test_subtract_bytes', 'test_subtract_class', - 'test_subtract_complex', 'test_subtract_dict', 'test_subtract_float', 'test_subtract_frozenset', 'test_subtract_int', 'test_subtract_list', 'test_subtract_None', - 'test_subtract_NotImplemented', 'test_subtract_range', 'test_subtract_set', 'test_subtract_slice', 'test_subtract_str', 'test_subtract_tuple', - 'test_true_divide_bool', 'test_true_divide_bytearray', 'test_true_divide_bytes', 'test_true_divide_class', @@ -801,16 +728,12 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_true_divide_None', 'test_true_divide_NotImplemented', 'test_true_divide_range', - 'test_true_divide_set', - 'test_true_divide_slice', 'test_true_divide_str', 'test_true_divide_tuple', 'test_xor_bool', 'test_xor_bytearray', - 'test_xor_bytes', 'test_xor_class', - 'test_xor_complex', 'test_xor_dict', 'test_xor_float', 'test_xor_frozenset', @@ -822,5 +745,4 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_xor_set', 'test_xor_slice', 'test_xor_str', - 'test_xor_tuple', ] diff --git a/tests/datatypes/test_int.py b/tests/datatypes/test_int.py index b585f2be53..ac2be8cd22 100644 --- a/tests/datatypes/test_int.py +++ b/tests/datatypes/test_int.py @@ -37,7 +37,6 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'int' not_implemented = [ - 'test_add_frozenset', 'test_and_class', 'test_and_frozenset', @@ -50,14 +49,11 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ne_bytes', 'test_direct_eq_frozenset', - 'test_direct_ge_frozenset', - 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', 'test_direct_ne_frozenset', 'test_eq_class', - 'test_eq_frozenset', 'test_ge_class', 'test_ge_frozenset', @@ -76,7 +72,6 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_class', 'test_multiply_complex', @@ -99,7 +94,6 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_class', 'test_subscr_frozenset', - 'test_subtract_class', 'test_subtract_frozenset', 'test_true_divide_class', @@ -115,16 +109,12 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'int' not_implemented = [ - 'test_add_class', 'test_add_complex', - 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', 'test_floor_divide_class', 'test_floor_divide_complex', - 'test_floor_divide_frozenset', 'test_floor_divide_float', 'test_lshift_class', @@ -137,7 +127,6 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_bytearray', 'test_multiply_bytes', - 'test_multiply_class', 'test_multiply_complex', 'test_multiply_float', 'test_multiply_frozenset', @@ -148,14 +137,11 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_or_class', 'test_or_frozenset', - 'test_power_class', 'test_power_complex', 'test_power_float', 'test_power_frozenset', 'test_power_int', - 'test_rshift_class', - 'test_rshift_frozenset', 'test_subtract_class', 'test_subtract_complex', diff --git a/tests/datatypes/test_list.py b/tests/datatypes/test_list.py index 8e33dc80cd..b48081980e 100644 --- a/tests/datatypes/test_list.py +++ b/tests/datatypes/test_list.py @@ -603,37 +603,30 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', 'test_direct_eq_bytes', 'test_direct_ge_bytes', 'test_direct_gt_bytes', 'test_direct_le_bytes', - 'test_direct_lt_bytes', 'test_direct_ne_bytes', 'test_direct_ge_list', 'test_direct_gt_list', 'test_direct_le_list', - 'test_direct_lt_list', 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', 'test_direct_ne_frozenset', 'test_eq_class', - 'test_eq_frozenset', 'test_ge_class', 'test_ge_frozenset', 'test_ge_list', 'test_gt_class', - 'test_gt_frozenset', - 'test_gt_list', 'test_le_class', 'test_le_frozenset', @@ -660,7 +653,6 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_or_frozenset', 'test_power_class', - 'test_power_frozenset', 'test_rshift_class', 'test_rshift_frozenset', @@ -671,12 +663,9 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_slice', 'test_subtract_class', - 'test_subtract_frozenset', - 'test_true_divide_class', 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', ] @@ -687,7 +676,6 @@ class InplaceListOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_bytearray', 'test_add_bytes', - 'test_add_class', 'test_add_dict', 'test_add_frozenset', 'test_add_range', @@ -695,7 +683,6 @@ class InplaceListOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_str', 'test_and_class', - 'test_and_frozenset', 'test_floor_divide_class', 'test_floor_divide_complex', @@ -708,11 +695,8 @@ class InplaceListOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_complex', 'test_modulo_frozenset', - 'test_multiply_class', 'test_multiply_frozenset', - 'test_or_class', - 'test_or_frozenset', 'test_power_class', 'test_power_frozenset', @@ -724,8 +708,6 @@ class InplaceListOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_subtract_frozenset', 'test_true_divide_class', - 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_range.py b/tests/datatypes/test_range.py index d2c847389e..f0cbec88cc 100644 --- a/tests/datatypes/test_range.py +++ b/tests/datatypes/test_range.py @@ -115,7 +115,6 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ge_class', 'test_ge_complex', 'test_ge_dict', - 'test_ge_float', 'test_ge_frozenset', 'test_ge_int', 'test_ge_list', @@ -136,13 +135,9 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_float', 'test_gt_frozenset', 'test_gt_int', - 'test_gt_list', 'test_gt_None', - 'test_gt_NotImplemented', 'test_gt_range', 'test_gt_set', - 'test_gt_slice', - 'test_gt_str', 'test_gt_tuple', 'test_le_bool', @@ -153,14 +148,10 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_dict', 'test_le_float', 'test_le_frozenset', - 'test_le_int', 'test_le_list', 'test_le_None', - 'test_le_NotImplemented', 'test_le_range', - 'test_le_set', 'test_le_slice', - 'test_le_str', 'test_le_tuple', 'test_lshift_class', @@ -168,23 +159,18 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lt_bool', 'test_lt_bytearray', - 'test_lt_bytes', 'test_lt_class', - 'test_lt_complex', 'test_lt_dict', - 'test_lt_float', 'test_lt_frozenset', 'test_lt_int', 'test_lt_list', 'test_lt_None', - 'test_lt_NotImplemented', 'test_lt_range', 'test_lt_set', 'test_lt_slice', 'test_lt_str', 'test_lt_tuple', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_frozenset', @@ -203,10 +189,8 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_or_class', 'test_or_frozenset', - 'test_power_class', 'test_power_frozenset', - 'test_rshift_class', 'test_rshift_frozenset', 'test_subscr_bool', @@ -217,7 +201,6 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_dict', 'test_subscr_float', 'test_subscr_frozenset', - 'test_subscr_int', 'test_subscr_list', 'test_subscr_None', 'test_subscr_NotImplemented', @@ -228,7 +211,6 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_tuple', 'test_subtract_class', - 'test_subtract_frozenset', 'test_true_divide_class', 'test_true_divide_frozenset', @@ -243,14 +225,11 @@ class InplaceRangeOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_class', - 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', 'test_floor_divide_class', 'test_floor_divide_complex', - 'test_floor_divide_frozenset', 'test_lshift_class', 'test_lshift_frozenset', @@ -272,11 +251,9 @@ class InplaceRangeOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_rshift_frozenset', 'test_subtract_class', - 'test_subtract_frozenset', 'test_true_divide_class', 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_set.py b/tests/datatypes/test_set.py index 9465ce73ff..19d1b87a7e 100644 --- a/tests/datatypes/test_set.py +++ b/tests/datatypes/test_set.py @@ -376,7 +376,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_le_bytes', 'test_direct_le_set', 'test_direct_lt_bytearray', - 'test_direct_lt_bytes', 'test_direct_lt_set', 'test_direct_ne_bytearray', 'test_direct_ne_bytes', @@ -384,12 +383,10 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', - 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', 'test_direct_ne_frozenset', - 'test_direct_eq_list', 'test_direct_eq_slice', 'test_direct_ne_slice', @@ -407,7 +404,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', - 'test_lshift_class', 'test_lshift_frozenset', 'test_lt_class', @@ -418,15 +414,11 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_bytearray', 'test_multiply_bytes', - 'test_multiply_class', 'test_multiply_frozenset', 'test_ne_class', - 'test_ne_frozenset', - 'test_or_class', - 'test_power_class', 'test_power_frozenset', 'test_rshift_class', @@ -438,7 +430,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_frozenset', 'test_true_divide_class', - 'test_true_divide_frozenset', 'test_xor_class', 'test_xor_frozenset', @@ -454,18 +445,12 @@ class InplaceSetOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', 'test_and_set', - 'test_lshift_class', - 'test_lshift_frozenset', 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', - 'test_multiply_class', - 'test_multiply_frozenset', 'test_or_class', 'test_or_frozenset', @@ -474,12 +459,10 @@ class InplaceSetOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_class', 'test_power_frozenset', - 'test_rshift_class', 'test_rshift_frozenset', 'test_subtract_class', 'test_subtract_frozenset', - 'test_subtract_set', 'test_true_divide_class', 'test_true_divide_frozenset', diff --git a/tests/datatypes/test_slice.py b/tests/datatypes/test_slice.py index 0b6a144e23..e951c870c8 100644 --- a/tests/datatypes/test_slice.py +++ b/tests/datatypes/test_slice.py @@ -77,7 +77,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_add_class', 'test_add_frozenset', - 'test_and_class', 'test_and_frozenset', 'test_direct_eq_frozenset', @@ -85,7 +84,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', - 'test_direct_ne_frozenset', 'test_direct_eq_slice', 'test_direct_ge_slice', @@ -98,20 +96,16 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_eq_frozenset', 'test_eq_slice', - 'test_ge_bool', 'test_ge_bytearray', 'test_ge_bytes', 'test_ge_class', 'test_ge_complex', 'test_ge_dict', 'test_ge_float', - 'test_ge_frozenset', 'test_ge_int', - 'test_ge_list', 'test_ge_None', 'test_ge_NotImplemented', 'test_ge_range', - 'test_ge_set', 'test_ge_slice', 'test_ge_str', 'test_ge_tuple', @@ -124,53 +118,39 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_dict', 'test_gt_float', 'test_gt_frozenset', - 'test_gt_int', 'test_gt_list', - 'test_gt_None', - 'test_gt_NotImplemented', 'test_gt_range', 'test_gt_set', 'test_gt_slice', 'test_gt_str', - 'test_gt_tuple', 'test_le_bool', 'test_le_bytearray', 'test_le_bytes', 'test_le_class', 'test_le_complex', - 'test_le_dict', 'test_le_float', 'test_le_frozenset', - 'test_le_int', 'test_le_list', 'test_le_None', 'test_le_NotImplemented', 'test_le_range', 'test_le_set', 'test_le_slice', - 'test_le_str', 'test_le_tuple', 'test_lshift_class', - 'test_lshift_frozenset', 'test_lt_bool', - 'test_lt_bytearray', - 'test_lt_bytes', 'test_lt_class', 'test_lt_complex', - 'test_lt_dict', 'test_lt_float', - 'test_lt_frozenset', 'test_lt_int', 'test_lt_list', 'test_lt_None', - 'test_lt_NotImplemented', 'test_lt_range', 'test_lt_set', 'test_lt_slice', - 'test_lt_str', 'test_lt_tuple', 'test_modulo_class', @@ -196,7 +176,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_frozenset', 'test_rshift_class', - 'test_rshift_frozenset', 'test_subscr_bool', 'test_subscr_bytearray', @@ -219,11 +198,8 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subtract_class', 'test_subtract_frozenset', - 'test_true_divide_class', - 'test_true_divide_frozenset', 'test_xor_class', - 'test_xor_frozenset', ] @@ -232,7 +208,6 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_class', - 'test_add_frozenset', 'test_and_class', 'test_and_frozenset', @@ -242,7 +217,6 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytearray', 'test_multiply_bytes', @@ -252,10 +226,8 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_str', 'test_multiply_tuple', - 'test_or_class', 'test_or_frozenset', - 'test_power_class', 'test_power_frozenset', 'test_rshift_class', diff --git a/tests/datatypes/test_str.py b/tests/datatypes/test_str.py index 3fabc1ff0d..da60c43352 100644 --- a/tests/datatypes/test_str.py +++ b/tests/datatypes/test_str.py @@ -697,25 +697,18 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'str' not_implemented = [ - 'test_add_class', 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', 'test_direct_eq_bytes', - 'test_direct_ge_bytes', 'test_direct_gt_bytes', 'test_direct_le_bytes', - 'test_direct_lt_bytes', 'test_direct_ne_bytes', 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', - 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', - 'test_direct_ne_frozenset', 'test_eq_class', 'test_eq_frozenset', @@ -753,8 +746,6 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_str', 'test_modulo_tuple', - 'test_multiply_class', - 'test_multiply_frozenset', 'test_ne_class', 'test_ne_frozenset', @@ -762,7 +753,6 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_or_class', 'test_or_frozenset', - 'test_power_class', 'test_power_frozenset', 'test_rshift_class', @@ -773,7 +763,6 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_frozenset', 'test_subscr_slice', - 'test_subtract_class', 'test_subtract_frozenset', 'test_true_divide_class', @@ -795,7 +784,6 @@ class InplaceStrOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_and_frozenset', 'test_lshift_class', - 'test_lshift_frozenset', 'test_modulo_bool', 'test_modulo_bytes', @@ -816,16 +804,13 @@ class InplaceStrOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_tuple', 'test_multiply_class', - 'test_multiply_frozenset', 'test_or_class', - 'test_or_frozenset', 'test_power_class', 'test_power_frozenset', 'test_rshift_class', - 'test_rshift_frozenset', 'test_subtract_class', 'test_subtract_frozenset', diff --git a/tests/datatypes/test_tuple.py b/tests/datatypes/test_tuple.py index e1b53210c3..f338ad4e82 100644 --- a/tests/datatypes/test_tuple.py +++ b/tests/datatypes/test_tuple.py @@ -271,10 +271,8 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_class', - 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', 'test_direct_eq_bytes', 'test_direct_ge_bytes', @@ -293,13 +291,11 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ge_tuple', 'test_direct_gt_tuple', 'test_direct_le_tuple', - 'test_direct_lt_tuple', 'test_eq_class', 'test_eq_frozenset', 'test_ge_class', - 'test_ge_frozenset', 'test_ge_tuple', 'test_gt_class', @@ -311,18 +307,14 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_tuple', 'test_lshift_class', - 'test_lshift_frozenset', 'test_lt_class', - 'test_lt_frozenset', 'test_lt_tuple', 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_class', - 'test_multiply_frozenset', 'test_ne_class', 'test_ne_frozenset', @@ -363,9 +355,7 @@ class InplaceTupleOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_and_frozenset', 'test_lshift_class', - 'test_lshift_frozenset', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_frozenset', @@ -391,11 +381,9 @@ class InplaceTupleOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_class', 'test_power_frozenset', - 'test_rshift_class', 'test_rshift_frozenset', 'test_subtract_class', - 'test_subtract_frozenset', 'test_true_divide_class', 'test_true_divide_frozenset', From 8a9c38cab7e524672588ace30109454db0d97832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 12:16:36 -0700 Subject: [PATCH 04/25] Fix Unexpected Tests from one of the CI groups Sorry, I lost the link to the Code/Circle CI group this fixes. These fixes are auto-generated by parsing the output of a CI failure and then removing the passing tests from many `non_implemented` class attributes --- tests/builtins/test_abs.py | 1 - tests/builtins/test_all.py | 1 - tests/builtins/test_any.py | 1 - tests/builtins/test_chr.py | 1 - tests/builtins/test_delattr.py | 10 --- tests/builtins/test_divmod.py | 16 ----- tests/builtins/test_enumerate.py | 1 - tests/builtins/test_filter.py | 3 - tests/builtins/test_frozenset.py | 3 - tests/builtins/test_getattr.py | 11 --- tests/builtins/test_hasattr.py | 9 --- tests/builtins/test_hex.py | 1 - tests/builtins/test_int.py | 1 - tests/builtins/test_issubclass.py | 6 -- tests/builtins/test_list.py | 1 - tests/builtins/test_map.py | 26 ------- tests/builtins/test_pow.py | 18 ----- tests/builtins/test_sorted.py | 1 - tests/builtins/test_zip.py | 1 - tests/datatypes/test_NoneType.py | 12 ---- tests/datatypes/test_NotImplemented.py | 7 -- tests/datatypes/test_bool.py | 10 --- tests/datatypes/test_bytearray.py | 8 --- tests/datatypes/test_bytes.py | 21 ------ tests/datatypes/test_complex.py | 23 ------- tests/datatypes/test_dict.py | 14 ---- tests/datatypes/test_float.py | 10 --- tests/datatypes/test_frozenset.py | 93 -------------------------- tests/datatypes/test_int.py | 13 ---- tests/datatypes/test_list.py | 11 --- tests/datatypes/test_range.py | 29 -------- tests/datatypes/test_set.py | 11 --- tests/datatypes/test_slice.py | 22 ------ tests/datatypes/test_str.py | 8 --- tests/datatypes/test_tuple.py | 12 ---- 35 files changed, 416 deletions(-) diff --git a/tests/builtins/test_abs.py b/tests/builtins/test_abs.py index 6f127df258..d1a243beaa 100644 --- a/tests/builtins/test_abs.py +++ b/tests/builtins/test_abs.py @@ -19,5 +19,4 @@ class BuiltinAbsFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_class', - 'test_frozenset', ] diff --git a/tests/builtins/test_all.py b/tests/builtins/test_all.py index 082b4bc182..ac87386804 100644 --- a/tests/builtins/test_all.py +++ b/tests/builtins/test_all.py @@ -12,7 +12,6 @@ class BuiltinAllFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_bytearray', 'test_bytes', 'test_class', - 'test_dict', 'test_frozenset', 'test_str', ] diff --git a/tests/builtins/test_any.py b/tests/builtins/test_any.py index 8fbc7db144..e7f34ae96f 100644 --- a/tests/builtins/test_any.py +++ b/tests/builtins/test_any.py @@ -10,7 +10,6 @@ class BuiltinAnyFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_bytes', 'test_class', 'test_dict', 'test_frozenset', diff --git a/tests/builtins/test_chr.py b/tests/builtins/test_chr.py index ba3c33f67a..b02fb5e9e2 100644 --- a/tests/builtins/test_chr.py +++ b/tests/builtins/test_chr.py @@ -9,7 +9,6 @@ class BuiltinChrFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["chr"] not_implemented = [ - 'test_class', 'test_complex', 'test_frozenset', ] diff --git a/tests/builtins/test_delattr.py b/tests/builtins/test_delattr.py index fc0d97d43f..bc31f950f7 100644 --- a/tests/builtins/test_delattr.py +++ b/tests/builtins/test_delattr.py @@ -58,28 +58,22 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa functions = ["delattr"] not_implemented = [ - 'test_bool_class', 'test_bool_frozenset', - 'test_bytearray_frozenset', 'test_bytes_class', 'test_bytes_frozenset', 'test_class_bool', 'test_class_bytearray', - 'test_class_bytes', 'test_class_complex', 'test_class_dict', 'test_class_float', 'test_class_frozenset', 'test_class_list', 'test_class_None', - 'test_class_NotImplemented', - 'test_class_range', 'test_class_slice', 'test_class_str', - 'test_class_tuple', 'test_complex_class', 'test_complex_frozenset', @@ -100,7 +94,6 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_frozenset_str', 'test_frozenset_tuple', - 'test_int_class', 'test_int_frozenset', 'test_list_class', @@ -108,7 +101,6 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_None_frozenset', - 'test_NotImplemented_class', 'test_NotImplemented_frozenset', 'test_range_class', @@ -117,10 +109,8 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_set_frozenset', 'test_slice_class', - 'test_slice_frozenset', 'test_str_class', - 'test_str_frozenset', 'test_tuple_class', 'test_tuple_frozenset', diff --git a/tests/builtins/test_divmod.py b/tests/builtins/test_divmod.py index 92d79e5c0a..5de1b43ce5 100644 --- a/tests/builtins/test_divmod.py +++ b/tests/builtins/test_divmod.py @@ -45,34 +45,24 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_bytes_frozenset', 'test_class_bool', - 'test_class_bytearray', 'test_class_bytes', 'test_class_class', 'test_class_complex', - 'test_class_dict', 'test_class_float', - 'test_class_frozenset', 'test_class_int', 'test_class_list', 'test_class_None', 'test_class_NotImplemented', 'test_class_range', - 'test_class_set', 'test_class_slice', - 'test_class_tuple', 'test_complex_bytearray', 'test_complex_bytes', - 'test_complex_complex', 'test_complex_dict', 'test_complex_float', 'test_complex_int', - 'test_complex_list', - 'test_complex_None', 'test_complex_NotImplemented', 'test_complex_range', - 'test_complex_set', - 'test_complex_slice', 'test_complex_str', 'test_complex_tuple', @@ -86,16 +76,12 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_frozenset_bool', 'test_frozenset_bytearray', - 'test_frozenset_bytes', 'test_frozenset_class', 'test_frozenset_complex', - 'test_frozenset_float', - 'test_frozenset_int', 'test_frozenset_list', 'test_frozenset_None', 'test_frozenset_NotImplemented', 'test_frozenset_set', - 'test_frozenset_slice', 'test_frozenset_str', 'test_frozenset_tuple', @@ -119,7 +105,6 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_set_class', 'test_set_complex', - 'test_set_frozenset', 'test_slice_class', 'test_slice_complex', @@ -127,7 +112,6 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_str_class', 'test_str_complex', - 'test_str_frozenset', 'test_tuple_class', 'test_tuple_complex', diff --git a/tests/builtins/test_enumerate.py b/tests/builtins/test_enumerate.py index e6f115d7b3..f801b5631f 100644 --- a/tests/builtins/test_enumerate.py +++ b/tests/builtins/test_enumerate.py @@ -59,7 +59,6 @@ class BuiltinEnumerateFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_frozenset', 'test_int', 'test_list', - 'test_NotImplemented', 'test_range', 'test_set', 'test_slice', diff --git a/tests/builtins/test_filter.py b/tests/builtins/test_filter.py index 0e83f6cfda..867cef59ef 100644 --- a/tests/builtins/test_filter.py +++ b/tests/builtins/test_filter.py @@ -60,14 +60,11 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_class_bytes', 'test_class_class', 'test_class_complex', - 'test_class_dict', 'test_class_frozenset', 'test_class_int', 'test_class_list', 'test_class_NotImplemented', 'test_class_range', - 'test_class_set', - 'test_class_slice', 'test_class_str', 'test_class_tuple', diff --git a/tests/builtins/test_frozenset.py b/tests/builtins/test_frozenset.py index 7399e9f839..246c7d048e 100644 --- a/tests/builtins/test_frozenset.py +++ b/tests/builtins/test_frozenset.py @@ -16,11 +16,8 @@ class BuiltinFrozensetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_dict', 'test_float', 'test_frozenset', - 'test_int', 'test_list', 'test_None', - 'test_NotImplemented', - 'test_range', 'test_set', 'test_slice', 'test_str', diff --git a/tests/builtins/test_getattr.py b/tests/builtins/test_getattr.py index 6e4f2731d9..4bae13b8e4 100644 --- a/tests/builtins/test_getattr.py +++ b/tests/builtins/test_getattr.py @@ -53,12 +53,9 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_bytes_frozenset', 'test_class_bytes', - 'test_class_class', 'test_class_complex', - 'test_class_dict', 'test_class_float', 'test_class_frozenset', - 'test_class_int', 'test_class_list', 'test_class_None', 'test_class_NotImplemented', @@ -73,7 +70,6 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_dict_class', 'test_dict_frozenset', - 'test_float_class', 'test_float_frozenset', 'test_frozenset_bool', @@ -82,34 +78,27 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_frozenset_complex', 'test_frozenset_dict', 'test_frozenset_float', - 'test_frozenset_frozenset', 'test_frozenset_int', 'test_frozenset_list', 'test_frozenset_None', 'test_frozenset_NotImplemented', 'test_frozenset_slice', - 'test_frozenset_str', 'test_frozenset_tuple', 'test_int_frozenset', - 'test_list_class', 'test_list_frozenset', - 'test_None_class', 'test_None_frozenset', - 'test_NotImplemented_class', 'test_NotImplemented_frozenset', 'test_range_class', 'test_range_frozenset', 'test_set_class', - 'test_set_frozenset', 'test_slice_class', - 'test_slice_frozenset', 'test_str_class', diff --git a/tests/builtins/test_hasattr.py b/tests/builtins/test_hasattr.py index 5588b43d29..463990c123 100644 --- a/tests/builtins/test_hasattr.py +++ b/tests/builtins/test_hasattr.py @@ -34,16 +34,13 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa functions = ["hasattr"] not_implemented = [ - 'test_bool_frozenset', - 'test_bytearray_class', 'test_bytearray_frozenset', 'test_bytes_class', 'test_class_bytearray', 'test_class_bytes', - 'test_class_class', 'test_class_complex', 'test_class_dict', 'test_class_float', @@ -58,7 +55,6 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_complex_class', 'test_dict_class', - 'test_dict_frozenset', 'test_float_frozenset', @@ -72,14 +68,11 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_frozenset_int', 'test_frozenset_list', 'test_frozenset_None', - 'test_frozenset_NotImplemented', - 'test_frozenset_range', 'test_frozenset_set', 'test_frozenset_slice', 'test_frozenset_str', 'test_frozenset_tuple', - 'test_int_frozenset', 'test_list_class', 'test_list_frozenset', @@ -89,7 +82,6 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_NotImplemented_class', - 'test_range_class', 'test_range_frozenset', 'test_set_class', @@ -101,5 +93,4 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_str_frozenset', 'test_tuple_class', - 'test_tuple_frozenset', ] diff --git a/tests/builtins/test_hex.py b/tests/builtins/test_hex.py index f383a4674b..2e597fae63 100644 --- a/tests/builtins/test_hex.py +++ b/tests/builtins/test_hex.py @@ -9,5 +9,4 @@ class BuiltinHexFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["hex"] not_implemented = [ - 'test_frozenset', ] diff --git a/tests/builtins/test_int.py b/tests/builtins/test_int.py index 4ba6315f48..5a8b74a308 100644 --- a/tests/builtins/test_int.py +++ b/tests/builtins/test_int.py @@ -11,6 +11,5 @@ class BuiltinIntFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_class', 'test_frozenset', ] diff --git a/tests/builtins/test_issubclass.py b/tests/builtins/test_issubclass.py index 12388671c1..64b130eb6e 100644 --- a/tests/builtins/test_issubclass.py +++ b/tests/builtins/test_issubclass.py @@ -93,16 +93,10 @@ class BuiltinIssubclassFunctionTests(BuiltinFunctionTestCase, TranspileTestCase) functions = ["issubclass"] not_implemented = [ - 'test_bool', - 'test_bytearray', 'test_bytes', - 'test_complex', 'test_dict', - 'test_int', - 'test_None', 'test_range', 'test_set', - 'test_slice', 'test_str', 'test_tuple', ] diff --git a/tests/builtins/test_list.py b/tests/builtins/test_list.py index 4074869cb1..f48abdb09d 100644 --- a/tests/builtins/test_list.py +++ b/tests/builtins/test_list.py @@ -20,7 +20,6 @@ class BuiltinListFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_bytes', 'test_class', 'test_dict', 'test_frozenset', diff --git a/tests/builtins/test_map.py b/tests/builtins/test_map.py index b415c793ac..14b7c12e9b 100644 --- a/tests/builtins/test_map.py +++ b/tests/builtins/test_map.py @@ -35,13 +35,10 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bool_bytearray', - 'test_bool_dict', - 'test_bool_set', 'test_bool_str', 'test_bytearray_bytearray', 'test_bytearray_bytes', - 'test_bytearray_class', 'test_bytearray_dict', 'test_bytearray_frozenset', 'test_bytearray_set', @@ -49,9 +46,7 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_bytes_bytearray', 'test_bytes_dict', - 'test_bytes_frozenset', 'test_bytes_set', - 'test_bytes_str', 'test_class_bytearray', 'test_class_class', @@ -61,9 +56,7 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_class_int', 'test_class_None', 'test_class_range', - 'test_class_set', 'test_class_slice', - 'test_class_str', 'test_class_tuple', 'test_complex_bytearray', @@ -74,10 +67,7 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_complex_str', 'test_dict_bytearray', - 'test_dict_bytes', 'test_dict_class', - 'test_dict_dict', - 'test_dict_frozenset', 'test_dict_str', 'test_float_bytearray', @@ -90,23 +80,15 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_frozenset_bool', 'test_frozenset_bytearray', 'test_frozenset_class', - 'test_frozenset_float', - 'test_frozenset_frozenset', 'test_frozenset_int', 'test_frozenset_list', 'test_frozenset_None', 'test_frozenset_NotImplemented', - 'test_frozenset_range', 'test_frozenset_set', - 'test_frozenset_str', 'test_frozenset_tuple', 'test_int_bytearray', - 'test_int_bytes', 'test_int_class', - 'test_int_dict', - 'test_int_frozenset', - 'test_int_set', 'test_int_str', 'test_list_bytearray', @@ -114,7 +96,6 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_list_class', 'test_list_dict', 'test_list_frozenset', - 'test_list_str', 'test_None_bytearray', 'test_None_bytes', @@ -125,19 +106,14 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_NotImplemented_bytearray', 'test_NotImplemented_class', - 'test_NotImplemented_frozenset', 'test_NotImplemented_str', 'test_range_bytearray', - 'test_range_bytes', - 'test_range_class', 'test_range_dict', - 'test_range_str', 'test_set_bytearray', 'test_set_bytes', 'test_set_class', - 'test_set_dict', 'test_set_set', 'test_slice_bytearray', @@ -149,8 +125,6 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_slice_str', 'test_str_bytearray', - 'test_str_bytes', - 'test_str_class', 'test_str_dict', 'test_str_frozenset', 'test_str_set', diff --git a/tests/builtins/test_pow.py b/tests/builtins/test_pow.py index 0b6dc3cdde..c057640df7 100644 --- a/tests/builtins/test_pow.py +++ b/tests/builtins/test_pow.py @@ -123,16 +123,11 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_class_bytearray', 'test_class_bytes', 'test_class_class', - 'test_class_dict', 'test_class_float', 'test_class_frozenset', - 'test_class_range', - 'test_class_slice', 'test_class_int', - 'test_class_list', 'test_class_NotImplemented', 'test_class_set', - 'test_class_str', 'test_class_tuple', 'test_complex_bool', @@ -142,10 +137,7 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_complex_float', 'test_complex_frozenset', 'test_complex_range', - 'test_complex_slice', 'test_complex_int', - 'test_complex_list', - 'test_complex_None', 'test_complex_NotImplemented', 'test_complex_set', 'test_complex_tuple', @@ -155,27 +147,19 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_float_complex', 'test_float_float', - 'test_frozenset_bool', - 'test_frozenset_bytearray', 'test_frozenset_bytes', 'test_frozenset_class', - 'test_frozenset_complex', - 'test_frozenset_dict', 'test_frozenset_float', 'test_frozenset_frozenset', 'test_frozenset_range', 'test_frozenset_int', 'test_frozenset_list', 'test_frozenset_None', - 'test_frozenset_NotImplemented', - 'test_frozenset_set', 'test_frozenset_str', 'test_frozenset_tuple', - 'test_int_class', 'test_int_complex', 'test_int_float', - 'test_int_frozenset', 'test_list_frozenset', @@ -183,7 +167,6 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_None_frozenset', - 'test_range_class', 'test_range_frozenset', 'test_set_class', @@ -194,5 +177,4 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_str_frozenset', - 'test_tuple_class', ] diff --git a/tests/builtins/test_sorted.py b/tests/builtins/test_sorted.py index d1b80a12c9..bef5aa84cd 100644 --- a/tests/builtins/test_sorted.py +++ b/tests/builtins/test_sorted.py @@ -29,6 +29,5 @@ class BuiltinSortedFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_bytearray', 'test_bytes', 'test_dict', - 'test_frozenset', 'test_set', ] diff --git a/tests/builtins/test_zip.py b/tests/builtins/test_zip.py index daf67c2145..e830a04d26 100644 --- a/tests/builtins/test_zip.py +++ b/tests/builtins/test_zip.py @@ -41,7 +41,6 @@ class BuiltinZipFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_complex', 'test_dict', 'test_frozenset', - 'test_int', 'test_list', 'test_NotImplemented', 'test_range', diff --git a/tests/datatypes/test_NoneType.py b/tests/datatypes/test_NoneType.py index 91055f20ce..13b8e9c2ca 100644 --- a/tests/datatypes/test_NoneType.py +++ b/tests/datatypes/test_NoneType.py @@ -33,7 +33,6 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ne_bool', - 'test_direct_ne_bytearray', 'test_direct_ne_class', 'test_direct_ne_complex', 'test_direct_ne_dict', @@ -45,25 +44,20 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ne_set', 'test_direct_ne_slice', 'test_direct_ne_str', - 'test_direct_ne_tuple', 'test_direct_le_bytes', 'test_direct_lt_bytes', - 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', 'test_eq_class', - 'test_eq_frozenset', 'test_ge_class', - 'test_ge_frozenset', 'test_gt_class', - 'test_gt_frozenset', 'test_le_class', 'test_le_frozenset', @@ -80,7 +74,6 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_bytes', 'test_multiply_bytearray', 'test_multiply_class', - 'test_multiply_frozenset', 'test_ne_class', 'test_ne_frozenset', @@ -111,20 +104,17 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) data_type = 'None' not_implemented = [ - 'test_add_class', 'test_add_frozenset', 'test_and_class', 'test_floor_divide_class', 'test_floor_divide_complex', - 'test_floor_divide_frozenset', 'test_lshift_class', 'test_lshift_frozenset', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytes', 'test_multiply_bytearray', @@ -134,7 +124,6 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) 'test_multiply_str', 'test_multiply_tuple', - 'test_or_frozenset', 'test_power_class', 'test_power_frozenset', @@ -143,7 +132,6 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) 'test_rshift_frozenset', 'test_subtract_class', - 'test_subtract_frozenset', 'test_true_divide_class', diff --git a/tests/datatypes/test_NotImplemented.py b/tests/datatypes/test_NotImplemented.py index e2b99dd0f3..a938abde56 100644 --- a/tests/datatypes/test_NotImplemented.py +++ b/tests/datatypes/test_NotImplemented.py @@ -24,12 +24,10 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_and_frozenset', 'test_direct_eq_bytes', - 'test_direct_gt_bytes', 'test_direct_ne_bytes', 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', - 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', 'test_direct_ne_frozenset', @@ -65,9 +63,7 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_or_frozenset', - 'test_rshift_class', - 'test_subscr_frozenset', 'test_subtract_frozenset', @@ -81,7 +77,6 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes data_type = 'NotImplemented' not_implemented = [ - 'test_add_class', 'test_add_frozenset', 'test_and_class', @@ -151,8 +146,6 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_subtract_class', 'test_subtract_frozenset', - 'test_true_divide_class', - 'test_true_divide_frozenset', 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_bool.py b/tests/datatypes/test_bool.py index ee4a6143ae..509d4f49d8 100644 --- a/tests/datatypes/test_bool.py +++ b/tests/datatypes/test_bool.py @@ -80,8 +80,6 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_class', 'test_ne_frozenset', - 'test_or_class', - 'test_or_frozenset', 'test_power_class', 'test_power_complex', @@ -142,7 +140,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', 'test_and_int', 'test_floor_divide_bool', @@ -152,7 +149,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_floor_divide_int', 'test_lshift_class', - 'test_lshift_frozenset', 'test_modulo_bool', 'test_modulo_class', @@ -173,7 +169,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_str', 'test_multiply_tuple', - 'test_or_class', 'test_or_frozenset', 'test_or_int', @@ -181,21 +176,16 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_class', 'test_power_complex', 'test_power_float', - 'test_power_frozenset', 'test_power_int', - 'test_rshift_class', - 'test_rshift_frozenset', 'test_subtract_bool', - 'test_subtract_class', 'test_subtract_complex', 'test_subtract_float', 'test_subtract_frozenset', 'test_subtract_int', 'test_true_divide_bool', - 'test_true_divide_class', 'test_true_divide_complex', 'test_true_divide_float', 'test_true_divide_frozenset', diff --git a/tests/datatypes/test_bytearray.py b/tests/datatypes/test_bytearray.py index 86707ba9f1..5e1d062923 100644 --- a/tests/datatypes/test_bytearray.py +++ b/tests/datatypes/test_bytearray.py @@ -39,7 +39,6 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_frozenset', 'test_direct_eq_frozenset', - 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_ne_frozenset', @@ -59,7 +58,6 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lshift_frozenset', 'test_lt_class', - 'test_lt_frozenset', 'test_modulo_class', 'test_modulo_complex', @@ -82,14 +80,11 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_class', 'test_subscr_frozenset', - 'test_subtract_class', 'test_subtract_frozenset', - 'test_true_divide_class', 'test_true_divide_frozenset', 'test_xor_class', - 'test_xor_frozenset', ] @@ -98,7 +93,6 @@ class InplaceBytearrayOperationTests(InplaceOperationTestCase, TranspileTestCase not_implemented = [ 'test_add_class', - 'test_add_frozenset', 'test_and_class', 'test_and_frozenset', @@ -115,7 +109,6 @@ class InplaceBytearrayOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_multiply_class', 'test_or_class', - 'test_or_frozenset', 'test_power_class', @@ -127,6 +120,5 @@ class InplaceBytearrayOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_true_divide_class', 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_bytes.py b/tests/datatypes/test_bytes.py index e5117e6925..8a2aa4b5dc 100644 --- a/tests/datatypes/test_bytes.py +++ b/tests/datatypes/test_bytes.py @@ -61,12 +61,10 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_class', 'test_and_frozenset', - 'test_direct_eq_bool', 'test_direct_eq_bytearray', 'test_direct_eq_bytes', 'test_direct_eq_class', 'test_direct_eq_dict', - 'test_direct_eq_float', 'test_direct_eq_frozenset', 'test_direct_eq_int', 'test_direct_eq_none', @@ -75,21 +73,16 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ge_bool', 'test_direct_ge_bytearray', - 'test_direct_ge_bytes', 'test_direct_ge_complex', 'test_direct_ge_dict', 'test_direct_ge_frozenset', - 'test_direct_ge_int', - 'test_direct_ge_list', 'test_direct_ge_none', - 'test_direct_ge_str', 'test_direct_ge_tuple', 'test_direct_gt_bool', 'test_direct_gt_bytearray', 'test_direct_gt_bytes', 'test_direct_gt_class', - 'test_direct_gt_complex', 'test_direct_gt_dict', 'test_direct_gt_frozenset', 'test_direct_gt_int', @@ -103,21 +96,17 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_le_bytearray', 'test_direct_le_class', 'test_direct_le_complex', - 'test_direct_le_float', 'test_direct_le_frozenset', 'test_direct_le_int', 'test_direct_le_list', 'test_direct_le_none', 'test_direct_le_set', - 'test_direct_le_str', 'test_direct_le_tuple', 'test_direct_lt_bool', 'test_direct_lt_bytearray', 'test_direct_lt_class', 'test_direct_lt_complex', - 'test_direct_lt_dict', - 'test_direct_lt_float', 'test_direct_lt_int', 'test_direct_lt_list', 'test_direct_lt_none', @@ -163,16 +152,12 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lshift_frozenset', 'test_modulo_None', - 'test_modulo_NotImplemented', - 'test_modulo_bytearray', 'test_modulo_bytes', 'test_modulo_complex', 'test_modulo_dict', - 'test_modulo_float', 'test_modulo_int', 'test_modulo_list', 'test_modulo_set', - 'test_modulo_slice', 'test_modulo_str', 'test_modulo_tuple', @@ -180,14 +165,11 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_frozenset', 'test_or_class', - 'test_or_frozenset', 'test_power_frozenset', - 'test_rshift_class', 'test_rshift_frozenset', - 'test_subscr_class', 'test_subtract_class', 'test_subtract_frozenset', @@ -219,18 +201,15 @@ class InplaceBytesOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_class', 'test_modulo_complex', 'test_modulo_dict', - 'test_modulo_float', 'test_modulo_frozenset', 'test_modulo_int', 'test_modulo_list', 'test_modulo_range', 'test_modulo_set', 'test_modulo_slice', - 'test_modulo_str', 'test_modulo_tuple', 'test_multiply_class', - 'test_multiply_frozenset', 'test_or_class', 'test_or_frozenset', diff --git a/tests/datatypes/test_complex.py b/tests/datatypes/test_complex.py index dbc0ce6f76..3c1d9aa47c 100644 --- a/tests/datatypes/test_complex.py +++ b/tests/datatypes/test_complex.py @@ -66,14 +66,10 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_class', - 'test_and_class', - 'test_and_frozenset', 'test_direct_eq_frozenset', - 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', 'test_direct_eq_float', 'test_direct_eq_int', @@ -85,8 +81,6 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_eq_class', 'test_eq_frozenset', - 'test_floor_divide_class', - 'test_floor_divide_frozenset', 'test_ge_class', 'test_ge_frozenset', @@ -103,7 +97,6 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lt_frozenset', 'test_modulo_class', - 'test_modulo_frozenset', 'test_multiply_class', @@ -112,19 +105,16 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_or_class', - 'test_power_class', 'test_power_frozenset', 'test_rshift_class', 'test_rshift_frozenset', 'test_subscr_class', - 'test_subscr_frozenset', 'test_subtract_frozenset', 'test_true_divide_class', - 'test_true_divide_frozenset', 'test_xor_class', 'test_xor_frozenset', @@ -139,23 +129,17 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_class', 'test_add_complex', 'test_add_float', - 'test_add_frozenset', 'test_add_int', 'test_and_None', 'test_and_NotImplemented', - 'test_and_slice', - 'test_and_range', 'test_and_bool', 'test_and_bytearray', 'test_and_bytes', 'test_and_class', - 'test_and_complex', 'test_and_dict', 'test_and_float', - 'test_and_frozenset', 'test_and_int', - 'test_and_list', 'test_and_none', 'test_and_set', 'test_and_str', @@ -263,9 +247,7 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_lshift_bytes', 'test_lshift_class', 'test_lshift_complex', - 'test_lshift_dict', 'test_lshift_float', - 'test_lshift_frozenset', 'test_lshift_int', 'test_lshift_list', 'test_lshift_none', @@ -340,9 +322,7 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_ne_str', 'test_ne_tuple', - 'test_or_frozenset', - 'test_power_NotImplemented', 'test_power_slice', 'test_power_range', 'test_power_bool', @@ -360,7 +340,6 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_tuple', 'test_rshift_None', - 'test_rshift_NotImplemented', 'test_rshift_slice', 'test_rshift_bytearray', 'test_rshift_complex', @@ -397,11 +376,9 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_subtract_frozenset', 'test_subtract_int', - 'test_true_divide_slice', 'test_true_divide_range', 'test_true_divide_bool', 'test_true_divide_bytearray', - 'test_true_divide_bytes', 'test_true_divide_class', 'test_true_divide_complex', 'test_true_divide_dict', diff --git a/tests/datatypes/test_dict.py b/tests/datatypes/test_dict.py index a43a5d52ae..8bb7e0059d 100644 --- a/tests/datatypes/test_dict.py +++ b/tests/datatypes/test_dict.py @@ -310,7 +310,6 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_class', 'test_and_frozenset', - 'test_direct_eq_bytes', 'test_direct_ge_bytes', 'test_direct_gt_bytes', 'test_direct_le_bytes', @@ -331,9 +330,7 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_frozenset', 'test_le_class', - 'test_le_frozenset', - 'test_lshift_class', 'test_lt_class', 'test_lt_frozenset', @@ -343,14 +340,12 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_frozenset', 'test_multiply_bytearray', - 'test_multiply_class', 'test_multiply_frozenset', 'test_ne_class', 'test_ne_frozenset', 'test_or_class', - 'test_or_frozenset', 'test_power_class', 'test_power_frozenset', @@ -360,16 +355,13 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_bytearray', 'test_subscr_class', 'test_subscr_complex', - 'test_subscr_frozenset', 'test_subscr_slice', 'test_subtract_frozenset', - 'test_true_divide_class', 'test_true_divide_frozenset', 'test_xor_class', - 'test_xor_frozenset', ] @@ -383,21 +375,16 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_and_frozenset', 'test_floor_divide_complex', - 'test_floor_divide_frozenset', 'test_lshift_class', 'test_lshift_frozenset', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_frozenset', 'test_multiply_frozenset', - 'test_or_class', - 'test_or_frozenset', - 'test_power_class', 'test_power_frozenset', 'test_rshift_frozenset', @@ -408,5 +395,4 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_true_divide_class', 'test_true_divide_frozenset', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_float.py b/tests/datatypes/test_float.py index 637a959bba..a162992315 100644 --- a/tests/datatypes/test_float.py +++ b/tests/datatypes/test_float.py @@ -115,13 +115,11 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_eq_bytes', 'test_direct_gt_bytes', - 'test_direct_le_bytes', 'test_direct_lt_bytes', 'test_direct_ne_bytes', 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', - 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', @@ -131,7 +129,6 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ge_frozenset', 'test_gt_class', - 'test_gt_frozenset', 'test_le_class', 'test_le_frozenset', @@ -163,7 +160,6 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_float', 'test_power_frozenset', - 'test_rshift_class', 'test_rshift_frozenset', 'test_subscr_bool', @@ -191,7 +187,6 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_true_divide_complex', 'test_true_divide_frozenset', - 'test_xor_frozenset', ] @@ -203,16 +198,13 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_complex', 'test_add_frozenset', - 'test_and_class', 'test_and_frozenset', 'test_floor_divide_class', - 'test_floor_divide_frozenset', 'test_lshift_class', 'test_lshift_frozenset', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_frozenset', @@ -227,8 +219,6 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_str', 'test_multiply_tuple', - 'test_or_class', - 'test_or_frozenset', 'test_power_class', 'test_power_complex', diff --git a/tests/datatypes/test_frozenset.py b/tests/datatypes/test_frozenset.py index ab612a6c79..0604a9dd32 100644 --- a/tests/datatypes/test_frozenset.py +++ b/tests/datatypes/test_frozenset.py @@ -329,46 +329,32 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'frozenset' not_implemented = [ - 'test_add_class', 'test_and_class', 'test_direct_eq_bytearray', 'test_direct_eq_bytes', - 'test_direct_eq_class', - 'test_direct_eq_complex', 'test_direct_eq_dict', - 'test_direct_eq_float', - 'test_direct_eq_frozenset', 'test_direct_eq_int', 'test_direct_eq_range', 'test_direct_eq_slice', 'test_direct_eq_tuple', 'test_direct_ne_bool', - 'test_direct_ne_bytearray', 'test_direct_ne_bytes', - 'test_direct_ne_class', 'test_direct_ne_dict', 'test_direct_ne_float', 'test_direct_ne_frozenset', - 'test_direct_ne_int', 'test_direct_ne_None', 'test_direct_ne_NotImplemented', - 'test_direct_ne_range', 'test_direct_ne_set', 'test_direct_ne_str', 'test_direct_ne_tuple', - 'test_direct_le_bool', - 'test_direct_le_bytearray', 'test_direct_le_complex', 'test_direct_le_dict', 'test_direct_le_float', - 'test_direct_le_frozenset', 'test_direct_le_int', - 'test_direct_le_list', - 'test_direct_le_None', 'test_direct_le_NotImplemented', 'test_direct_le_range', 'test_direct_le_slice', @@ -383,8 +369,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_lt_frozenset', 'test_direct_lt_int', 'test_direct_lt_list', - 'test_direct_lt_None', - 'test_direct_lt_NotImplemented', 'test_direct_lt_range', 'test_direct_lt_slice', 'test_direct_lt_str', @@ -392,28 +376,21 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ge_bool', 'test_direct_ge_bytearray', - 'test_direct_ge_bytes', 'test_direct_ge_class', 'test_direct_ge_complex', 'test_direct_ge_dict', 'test_direct_ge_float', 'test_direct_ge_frozenset', - 'test_direct_ge_int', 'test_direct_ge_list', - 'test_direct_ge_str', 'test_direct_ge_tuple', 'test_direct_gt_bool', - 'test_direct_gt_class', - 'test_direct_gt_complex', 'test_direct_gt_dict', 'test_direct_gt_float', 'test_direct_gt_int', 'test_direct_gt_None', 'test_direct_gt_NotImplemented', 'test_direct_gt_range', - 'test_direct_gt_set', - 'test_direct_gt_slice', 'test_direct_gt_str', 'test_direct_gt_tuple', @@ -422,17 +399,13 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_floor_divide_bool', 'test_floor_divide_bytearray', 'test_floor_divide_bytes', - 'test_floor_divide_class', 'test_floor_divide_dict', 'test_floor_divide_float', - 'test_floor_divide_frozenset', 'test_floor_divide_int', 'test_floor_divide_list', 'test_floor_divide_None', 'test_floor_divide_range', - 'test_floor_divide_slice', 'test_floor_divide_str', - 'test_floor_divide_tuple', 'test_ge_class', @@ -442,15 +415,12 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lshift_bytearray', 'test_lshift_bytes', - 'test_lshift_class', - 'test_lshift_complex', 'test_lshift_dict', 'test_lshift_float', 'test_lshift_frozenset', 'test_lshift_int', 'test_lshift_list', 'test_lshift_None', - 'test_lshift_NotImplemented', 'test_lshift_range', 'test_lshift_set', 'test_lshift_slice', @@ -460,39 +430,27 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lt_class', 'test_modulo_bytes', - 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_dict', 'test_modulo_float', - 'test_modulo_frozenset', 'test_modulo_int', - 'test_modulo_list', 'test_modulo_None', 'test_modulo_NotImplemented', 'test_modulo_range', 'test_modulo_set', 'test_modulo_slice', - 'test_modulo_str', - 'test_modulo_tuple', 'test_multiply_class', - 'test_ne_bytearray', 'test_ne_bytes', 'test_ne_class', 'test_ne_complex', 'test_ne_dict', 'test_ne_float', 'test_ne_frozenset', - 'test_ne_None', 'test_ne_NotImplemented', - 'test_ne_range', 'test_ne_set', - 'test_ne_str', - 'test_power_bool', - 'test_power_bytearray', 'test_power_bytes', 'test_power_class', 'test_power_complex', @@ -503,7 +461,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_list', 'test_power_None', 'test_power_NotImplemented', - 'test_power_range', 'test_power_set', 'test_power_slice', 'test_power_tuple', @@ -514,11 +471,8 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_rshift_class', 'test_rshift_complex', 'test_rshift_dict', - 'test_rshift_frozenset', 'test_rshift_list', 'test_rshift_None', - 'test_rshift_NotImplemented', - 'test_rshift_set', 'test_rshift_slice', 'test_subscr_bool', @@ -541,23 +495,19 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subtract_class', - 'test_true_divide_bool', 'test_true_divide_bytearray', 'test_true_divide_bytes', 'test_true_divide_class', 'test_true_divide_complex', 'test_true_divide_dict', 'test_true_divide_float', - 'test_true_divide_int', 'test_true_divide_list', 'test_true_divide_None', 'test_true_divide_NotImplemented', 'test_true_divide_range', 'test_true_divide_set', 'test_true_divide_slice', - 'test_true_divide_tuple', - 'test_xor_class', ] @@ -568,28 +518,19 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_add_bool', 'test_add_bytes', 'test_add_class', - 'test_add_complex', 'test_add_float', - 'test_add_frozenset', 'test_add_int', 'test_add_list', 'test_add_None', 'test_add_NotImplemented', - 'test_add_range', - 'test_add_set', 'test_add_slice', - 'test_add_str', - 'test_add_tuple', 'test_and_bool', 'test_and_bytearray', - 'test_and_bytes', 'test_and_class', 'test_and_dict', 'test_and_float', - 'test_and_frozenset', 'test_and_None', - 'test_and_NotImplemented', 'test_and_range', 'test_and_set', 'test_and_slice', @@ -598,24 +539,20 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_floor_divide_bytearray', 'test_floor_divide_class', - 'test_floor_divide_dict', 'test_floor_divide_float', 'test_floor_divide_frozenset', 'test_floor_divide_int', 'test_floor_divide_list', 'test_floor_divide_None', 'test_floor_divide_NotImplemented', - 'test_floor_divide_range', 'test_floor_divide_set', 'test_floor_divide_slice', - 'test_floor_divide_str', 'test_lshift_bool', 'test_lshift_bytearray', 'test_lshift_bytes', 'test_lshift_class', 'test_lshift_complex', - 'test_lshift_dict', 'test_lshift_frozenset', 'test_lshift_int', 'test_lshift_NotImplemented', @@ -627,11 +564,8 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_modulo_bytes', 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_dict', 'test_modulo_frozenset', - 'test_modulo_int', 'test_modulo_list', - 'test_modulo_range', 'test_modulo_set', 'test_modulo_str', 'test_modulo_tuple', @@ -641,27 +575,19 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_multiply_bytes', 'test_multiply_class', 'test_multiply_complex', - 'test_multiply_float', - 'test_multiply_frozenset', 'test_multiply_int', 'test_multiply_list', 'test_multiply_None', - 'test_multiply_range', - 'test_multiply_set', 'test_multiply_slice', - 'test_multiply_str', 'test_multiply_tuple', 'test_or_bool', - 'test_or_bytearray', 'test_or_bytes', 'test_or_class', 'test_or_complex', - 'test_or_dict', 'test_or_frozenset', 'test_or_list', 'test_or_None', - 'test_or_NotImplemented', 'test_or_range', 'test_or_set', 'test_or_slice', @@ -670,14 +596,11 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_power_bool', 'test_power_bytearray', 'test_power_bytes', - 'test_power_class', 'test_power_dict', 'test_power_float', 'test_power_frozenset', 'test_power_int', 'test_power_list', - 'test_power_None', - 'test_power_NotImplemented', 'test_power_range', 'test_power_set', 'test_power_slice', @@ -686,24 +609,16 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_rshift_bool', 'test_rshift_bytearray', - 'test_rshift_bytes', - 'test_rshift_class', 'test_rshift_complex', 'test_rshift_float', 'test_rshift_frozenset', - 'test_rshift_int', - 'test_rshift_list', 'test_rshift_None', 'test_rshift_NotImplemented', - 'test_rshift_range', 'test_rshift_set', - 'test_rshift_slice', - 'test_rshift_tuple', 'test_subtract_bool', 'test_subtract_bytearray', 'test_subtract_bytes', - 'test_subtract_class', 'test_subtract_dict', 'test_subtract_float', 'test_subtract_frozenset', @@ -712,30 +627,22 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_subtract_None', 'test_subtract_range', 'test_subtract_set', - 'test_subtract_slice', 'test_subtract_str', 'test_subtract_tuple', 'test_true_divide_bytearray', 'test_true_divide_bytes', - 'test_true_divide_class', 'test_true_divide_complex', - 'test_true_divide_dict', - 'test_true_divide_float', 'test_true_divide_frozenset', 'test_true_divide_int', 'test_true_divide_list', 'test_true_divide_None', 'test_true_divide_NotImplemented', 'test_true_divide_range', - 'test_true_divide_str', 'test_true_divide_tuple', - 'test_xor_bool', - 'test_xor_bytearray', 'test_xor_class', 'test_xor_dict', - 'test_xor_float', 'test_xor_frozenset', 'test_xor_int', 'test_xor_list', diff --git a/tests/datatypes/test_int.py b/tests/datatypes/test_int.py index ac2be8cd22..5480c49fcd 100644 --- a/tests/datatypes/test_int.py +++ b/tests/datatypes/test_int.py @@ -38,7 +38,6 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_and_class', 'test_and_frozenset', 'test_direct_eq_bytes', @@ -49,20 +48,14 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ne_bytes', 'test_direct_eq_frozenset', - 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', - 'test_direct_ne_frozenset', 'test_eq_class', 'test_ge_class', - 'test_ge_frozenset', 'test_gt_class', - 'test_gt_frozenset', 'test_le_class', - 'test_le_frozenset', 'test_lshift_class', 'test_lshift_frozenset', @@ -81,7 +74,6 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_frozenset', 'test_or_class', - 'test_or_frozenset', 'test_power_class', 'test_power_complex', @@ -91,7 +83,6 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_rshift_class', 'test_rshift_frozenset', - 'test_subscr_class', 'test_subscr_frozenset', 'test_subtract_frozenset', @@ -101,7 +92,6 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_true_divide_frozenset', 'test_xor_class', - 'test_xor_frozenset', ] @@ -118,18 +108,15 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_floor_divide_float', 'test_lshift_class', - 'test_lshift_frozenset', 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_modulo_float', 'test_multiply_bytearray', 'test_multiply_bytes', 'test_multiply_complex', 'test_multiply_float', - 'test_multiply_frozenset', 'test_multiply_list', 'test_multiply_str', 'test_multiply_tuple', diff --git a/tests/datatypes/test_list.py b/tests/datatypes/test_list.py index b48081980e..43599c42ae 100644 --- a/tests/datatypes/test_list.py +++ b/tests/datatypes/test_list.py @@ -602,15 +602,11 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_add_class', 'test_add_frozenset', - 'test_and_class', - 'test_direct_eq_bytes', - 'test_direct_ge_bytes', 'test_direct_gt_bytes', 'test_direct_le_bytes', 'test_direct_ne_bytes', - 'test_direct_ge_list', 'test_direct_gt_list', 'test_direct_le_list', @@ -629,10 +625,8 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_class', 'test_le_class', - 'test_le_frozenset', 'test_le_list', - 'test_lshift_class', 'test_lshift_frozenset', 'test_lt_class', @@ -641,7 +635,6 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_class', 'test_multiply_frozenset', @@ -650,7 +643,6 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_frozenset', 'test_or_class', - 'test_or_frozenset', 'test_power_class', @@ -658,7 +650,6 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_rshift_frozenset', 'test_subscr_bool', - 'test_subscr_class', 'test_subscr_frozenset', 'test_subscr_slice', @@ -699,12 +690,10 @@ class InplaceListOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_class', - 'test_power_frozenset', 'test_rshift_class', 'test_rshift_frozenset', - 'test_subtract_class', 'test_subtract_frozenset', 'test_true_divide_class', diff --git a/tests/datatypes/test_range.py b/tests/datatypes/test_range.py index f0cbec88cc..d1007a50b2 100644 --- a/tests/datatypes/test_range.py +++ b/tests/datatypes/test_range.py @@ -96,7 +96,6 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_frozenset', 'test_direct_eq_frozenset', - 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', @@ -111,32 +110,20 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ge_bool', 'test_ge_bytearray', - 'test_ge_bytes', 'test_ge_class', - 'test_ge_complex', 'test_ge_dict', - 'test_ge_frozenset', 'test_ge_int', - 'test_ge_list', 'test_ge_None', - 'test_ge_NotImplemented', 'test_ge_range', 'test_ge_set', - 'test_ge_slice', 'test_ge_str', 'test_ge_tuple', 'test_gt_bool', - 'test_gt_bytearray', - 'test_gt_bytes', 'test_gt_class', - 'test_gt_complex', - 'test_gt_dict', 'test_gt_float', 'test_gt_frozenset', - 'test_gt_int', 'test_gt_None', - 'test_gt_range', 'test_gt_set', 'test_gt_tuple', @@ -145,30 +132,23 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_bytes', 'test_le_class', 'test_le_complex', - 'test_le_dict', - 'test_le_float', 'test_le_frozenset', - 'test_le_list', 'test_le_None', 'test_le_range', 'test_le_slice', - 'test_le_tuple', 'test_lshift_class', 'test_lshift_frozenset', 'test_lt_bool', - 'test_lt_bytearray', 'test_lt_class', 'test_lt_dict', 'test_lt_frozenset', 'test_lt_int', 'test_lt_list', - 'test_lt_None', 'test_lt_range', 'test_lt_set', 'test_lt_slice', - 'test_lt_str', 'test_lt_tuple', 'test_modulo_complex', @@ -176,7 +156,6 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_bytearray', 'test_multiply_bytes', - 'test_multiply_class', 'test_multiply_frozenset', 'test_multiply_list', 'test_multiply_str', @@ -187,11 +166,8 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_range', 'test_or_class', - 'test_or_frozenset', - 'test_power_frozenset', - 'test_rshift_frozenset', 'test_subscr_bool', 'test_subscr_bytearray', @@ -212,8 +188,6 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subtract_class', - 'test_true_divide_class', - 'test_true_divide_frozenset', 'test_xor_class', 'test_xor_frozenset', @@ -236,16 +210,13 @@ class InplaceRangeOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_class', 'test_multiply_frozenset', - 'test_or_class', 'test_or_frozenset', 'test_power_class', - 'test_power_frozenset', 'test_rshift_class', 'test_rshift_frozenset', diff --git a/tests/datatypes/test_set.py b/tests/datatypes/test_set.py index 19d1b87a7e..941f285f30 100644 --- a/tests/datatypes/test_set.py +++ b/tests/datatypes/test_set.py @@ -368,7 +368,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_eq_set', 'test_direct_ge_bytearray', 'test_direct_ge_bytes', - 'test_direct_ge_set', 'test_direct_gt_bytearray', 'test_direct_gt_bytes', 'test_direct_gt_set', @@ -379,7 +378,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_lt_set', 'test_direct_ne_bytearray', 'test_direct_ne_bytes', - 'test_direct_ne_set', 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', @@ -389,7 +387,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_eq_slice', - 'test_direct_ne_slice', 'test_direct_ge_slice', 'test_direct_le_slice', @@ -414,7 +411,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_bytearray', 'test_multiply_bytes', - 'test_multiply_frozenset', 'test_ne_class', @@ -422,7 +418,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_frozenset', 'test_rshift_class', - 'test_rshift_frozenset', 'test_subtract_class', @@ -441,7 +436,6 @@ class InplaceSetOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'set' not_implemented = [ - 'test_add_class', 'test_add_frozenset', 'test_and_class', @@ -454,15 +448,10 @@ class InplaceSetOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_or_class', 'test_or_frozenset', - 'test_or_set', 'test_power_class', - 'test_power_frozenset', - 'test_rshift_frozenset', - 'test_subtract_class', - 'test_subtract_frozenset', 'test_true_divide_class', 'test_true_divide_frozenset', diff --git a/tests/datatypes/test_slice.py b/tests/datatypes/test_slice.py index e951c870c8..f3c47727c9 100644 --- a/tests/datatypes/test_slice.py +++ b/tests/datatypes/test_slice.py @@ -77,9 +77,7 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_add_class', 'test_add_frozenset', - 'test_and_frozenset', - 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', @@ -101,7 +99,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ge_class', 'test_ge_complex', 'test_ge_dict', - 'test_ge_float', 'test_ge_int', 'test_ge_None', 'test_ge_NotImplemented', @@ -114,7 +111,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_bytearray', 'test_gt_bytes', 'test_gt_class', - 'test_gt_complex', 'test_gt_dict', 'test_gt_float', 'test_gt_frozenset', @@ -122,33 +118,25 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_range', 'test_gt_set', 'test_gt_slice', - 'test_gt_str', - 'test_le_bool', 'test_le_bytearray', 'test_le_bytes', 'test_le_class', 'test_le_complex', - 'test_le_float', 'test_le_frozenset', 'test_le_list', 'test_le_None', 'test_le_NotImplemented', - 'test_le_range', 'test_le_set', 'test_le_slice', - 'test_le_tuple', 'test_lshift_class', 'test_lt_bool', 'test_lt_class', - 'test_lt_complex', 'test_lt_float', 'test_lt_int', - 'test_lt_list', 'test_lt_None', - 'test_lt_range', 'test_lt_set', 'test_lt_slice', 'test_lt_tuple', @@ -172,7 +160,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_or_class', 'test_or_frozenset', - 'test_power_class', 'test_power_frozenset', 'test_rshift_class', @@ -195,11 +182,8 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_str', 'test_subscr_tuple', - 'test_subtract_class', - 'test_subtract_frozenset', - 'test_xor_class', ] @@ -207,26 +191,21 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'slice' not_implemented = [ - 'test_add_class', 'test_and_class', - 'test_and_frozenset', 'test_lshift_class', 'test_lshift_frozenset', - 'test_modulo_class', 'test_modulo_complex', 'test_multiply_bytearray', 'test_multiply_bytes', 'test_multiply_class', - 'test_multiply_frozenset', 'test_multiply_list', 'test_multiply_str', 'test_multiply_tuple', - 'test_or_frozenset', 'test_power_frozenset', @@ -234,7 +213,6 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_rshift_frozenset', 'test_subtract_class', - 'test_subtract_frozenset', 'test_true_divide_class', 'test_true_divide_frozenset', diff --git a/tests/datatypes/test_str.py b/tests/datatypes/test_str.py index da60c43352..8f9ffd6921 100644 --- a/tests/datatypes/test_str.py +++ b/tests/datatypes/test_str.py @@ -701,13 +701,10 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_class', - 'test_direct_eq_bytes', 'test_direct_gt_bytes', - 'test_direct_le_bytes', 'test_direct_ne_bytes', 'test_direct_eq_frozenset', - 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_eq_class', @@ -722,11 +719,9 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', 'test_le_frozenset', - 'test_lshift_class', 'test_lshift_frozenset', 'test_lt_class', - 'test_lt_frozenset', 'test_modulo_bool', 'test_modulo_bytes', @@ -751,7 +746,6 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_frozenset', 'test_or_class', - 'test_or_frozenset', 'test_power_frozenset', @@ -768,7 +762,6 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_true_divide_class', 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', ] @@ -810,7 +803,6 @@ class InplaceStrOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_class', 'test_power_frozenset', - 'test_rshift_class', 'test_subtract_class', 'test_subtract_frozenset', diff --git a/tests/datatypes/test_tuple.py b/tests/datatypes/test_tuple.py index f338ad4e82..0c02e65109 100644 --- a/tests/datatypes/test_tuple.py +++ b/tests/datatypes/test_tuple.py @@ -274,7 +274,6 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_class', - 'test_direct_eq_bytes', 'test_direct_ge_bytes', 'test_direct_gt_bytes', 'test_direct_le_bytes', @@ -286,17 +285,14 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', - 'test_direct_ne_frozenset', 'test_direct_ge_tuple', 'test_direct_gt_tuple', - 'test_direct_le_tuple', 'test_eq_class', 'test_eq_frozenset', 'test_ge_class', - 'test_ge_tuple', 'test_gt_class', 'test_gt_frozenset', @@ -306,7 +302,6 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_frozenset', 'test_le_tuple', - 'test_lshift_class', 'test_lt_class', 'test_lt_tuple', @@ -322,15 +317,12 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_or_class', 'test_or_frozenset', - 'test_power_class', 'test_power_frozenset', - 'test_rshift_class', 'test_rshift_frozenset', 'test_subscr_bool', 'test_subscr_class', - 'test_subscr_frozenset', 'test_subscr_slice', 'test_subtract_class', @@ -349,7 +341,6 @@ class InplaceTupleOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_class', - 'test_add_frozenset', 'test_and_class', 'test_and_frozenset', @@ -379,15 +370,12 @@ class InplaceTupleOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_or_frozenset', 'test_power_class', - 'test_power_frozenset', 'test_rshift_frozenset', 'test_subtract_class', 'test_true_divide_class', - 'test_true_divide_frozenset', 'test_xor_class', - 'test_xor_frozenset', ] From 92c8b43ba2a49e17e7a0267fcbea99f2588b8f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 12:19:13 -0700 Subject: [PATCH 05/25] Autogenerated non_implemented removals from Log file from : https://api.travis-ci.org/jobs/234934325/log.txt?deansi=true --- tests/builtins/test_abs.py | 1 - tests/builtins/test_all.py | 1 - tests/builtins/test_any.py | 3 -- tests/builtins/test_bytearray.py | 1 - tests/builtins/test_chr.py | 1 - tests/builtins/test_delattr.py | 14 ----- tests/builtins/test_dict.py | 2 - tests/builtins/test_divmod.py | 19 ------- tests/builtins/test_filter.py | 11 ---- tests/builtins/test_frozenset.py | 4 -- tests/builtins/test_getattr.py | 13 ----- tests/builtins/test_hasattr.py | 9 ---- tests/builtins/test_int.py | 1 - tests/builtins/test_issubclass.py | 1 - tests/builtins/test_iter.py | 1 - tests/builtins/test_map.py | 24 --------- tests/builtins/test_next.py | 1 - tests/builtins/test_pow.py | 15 ------ tests/builtins/test_property.py | 1 - tests/builtins/test_set.py | 1 - tests/builtins/test_sorted.py | 2 - tests/builtins/test_sum.py | 2 - tests/builtins/test_type.py | 2 - tests/builtins/test_zip.py | 2 - tests/datatypes/test_NoneType.py | 21 -------- tests/datatypes/test_NotImplemented.py | 13 ----- tests/datatypes/test_bool.py | 18 ------- tests/datatypes/test_bytearray.py | 16 ------ tests/datatypes/test_bytes.py | 38 -------------- tests/datatypes/test_complex.py | 31 ----------- tests/datatypes/test_dict.py | 16 ------ tests/datatypes/test_float.py | 11 ---- tests/datatypes/test_frozenset.py | 73 -------------------------- tests/datatypes/test_int.py | 11 ---- tests/datatypes/test_list.py | 15 ------ tests/datatypes/test_range.py | 25 --------- tests/datatypes/test_set.py | 15 ------ tests/datatypes/test_slice.py | 26 --------- tests/datatypes/test_str.py | 9 ---- tests/datatypes/test_tuple.py | 11 ---- 40 files changed, 481 deletions(-) diff --git a/tests/builtins/test_abs.py b/tests/builtins/test_abs.py index d1a243beaa..a1e5443e08 100644 --- a/tests/builtins/test_abs.py +++ b/tests/builtins/test_abs.py @@ -18,5 +18,4 @@ class BuiltinAbsFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["abs"] not_implemented = [ - 'test_class', ] diff --git a/tests/builtins/test_all.py b/tests/builtins/test_all.py index ac87386804..5dda85897c 100644 --- a/tests/builtins/test_all.py +++ b/tests/builtins/test_all.py @@ -11,7 +11,6 @@ class BuiltinAllFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_class', 'test_frozenset', 'test_str', ] diff --git a/tests/builtins/test_any.py b/tests/builtins/test_any.py index e7f34ae96f..3bb3750f98 100644 --- a/tests/builtins/test_any.py +++ b/tests/builtins/test_any.py @@ -10,9 +10,6 @@ class BuiltinAnyFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_class', 'test_dict', - 'test_frozenset', - 'test_set', 'test_str', ] diff --git a/tests/builtins/test_bytearray.py b/tests/builtins/test_bytearray.py index 1bf8a72bc5..89ff27671b 100644 --- a/tests/builtins/test_bytearray.py +++ b/tests/builtins/test_bytearray.py @@ -11,7 +11,6 @@ class BuiltinBytearrayFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bool', 'test_bytearray', - 'test_bytes', 'test_class', 'test_complex', 'test_dict', diff --git a/tests/builtins/test_chr.py b/tests/builtins/test_chr.py index b02fb5e9e2..d6267d2230 100644 --- a/tests/builtins/test_chr.py +++ b/tests/builtins/test_chr.py @@ -10,5 +10,4 @@ class BuiltinChrFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_complex', - 'test_frozenset', ] diff --git a/tests/builtins/test_delattr.py b/tests/builtins/test_delattr.py index bc31f950f7..c62db56ee1 100644 --- a/tests/builtins/test_delattr.py +++ b/tests/builtins/test_delattr.py @@ -61,15 +61,11 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_bool_frozenset', - 'test_bytes_class', 'test_bytes_frozenset', 'test_class_bool', - 'test_class_bytearray', 'test_class_complex', 'test_class_dict', - 'test_class_float', - 'test_class_frozenset', 'test_class_list', 'test_class_None', 'test_class_slice', @@ -83,35 +79,25 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_float_class', 'test_frozenset_bytes', - 'test_frozenset_class', 'test_frozenset_complex', 'test_frozenset_list', 'test_frozenset_None', 'test_frozenset_NotImplemented', 'test_frozenset_range', - 'test_frozenset_set', 'test_frozenset_slice', 'test_frozenset_str', - 'test_frozenset_tuple', - 'test_int_frozenset', - 'test_list_class', 'test_list_frozenset', - 'test_None_frozenset', 'test_NotImplemented_frozenset', 'test_range_class', - 'test_range_frozenset', - 'test_set_frozenset', 'test_slice_class', 'test_str_class', - 'test_tuple_class', - 'test_tuple_frozenset', ] diff --git a/tests/builtins/test_dict.py b/tests/builtins/test_dict.py index eeda87d86f..27f4e26f55 100644 --- a/tests/builtins/test_dict.py +++ b/tests/builtins/test_dict.py @@ -11,9 +11,7 @@ class BuiltinDictFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_class', 'test_frozenset', 'test_list', - 'test_set', 'test_str', ] diff --git a/tests/builtins/test_divmod.py b/tests/builtins/test_divmod.py index 5de1b43ce5..9487f1a8e2 100644 --- a/tests/builtins/test_divmod.py +++ b/tests/builtins/test_divmod.py @@ -33,7 +33,6 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT functions = ["divmod"] not_implemented = [ - 'test_bool_class', 'test_bool_complex', 'test_bytearray_class', @@ -46,50 +45,35 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_class_bool', 'test_class_bytes', - 'test_class_class', 'test_class_complex', 'test_class_float', - 'test_class_int', 'test_class_list', 'test_class_None', 'test_class_NotImplemented', 'test_class_range', - 'test_class_slice', 'test_complex_bytearray', 'test_complex_bytes', - 'test_complex_dict', 'test_complex_float', - 'test_complex_int', - 'test_complex_NotImplemented', 'test_complex_range', - 'test_complex_str', - 'test_complex_tuple', 'test_dict_class', 'test_dict_complex', 'test_dict_frozenset', - 'test_float_class', 'test_float_complex', 'test_float_frozenset', - 'test_frozenset_bool', - 'test_frozenset_bytearray', 'test_frozenset_class', 'test_frozenset_complex', - 'test_frozenset_list', - 'test_frozenset_None', 'test_frozenset_NotImplemented', 'test_frozenset_set', 'test_frozenset_str', 'test_frozenset_tuple', - 'test_int_class', 'test_int_complex', 'test_int_frozenset', - 'test_list_class', 'test_list_complex', 'test_None_class', @@ -99,7 +83,6 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_NotImplemented_complex', 'test_NotImplemented_frozenset', - 'test_range_class', 'test_range_complex', 'test_range_frozenset', @@ -108,11 +91,9 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_slice_class', 'test_slice_complex', - 'test_slice_frozenset', 'test_str_class', 'test_str_complex', - 'test_tuple_class', 'test_tuple_complex', ] diff --git a/tests/builtins/test_filter.py b/tests/builtins/test_filter.py index 867cef59ef..8165fd2ba7 100644 --- a/tests/builtins/test_filter.py +++ b/tests/builtins/test_filter.py @@ -46,7 +46,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_bytes_bytearray', 'test_bytes_bytes', - 'test_bytes_class', 'test_bytes_dict', 'test_bytes_frozenset', 'test_bytes_list', @@ -64,13 +63,11 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_class_int', 'test_class_list', 'test_class_NotImplemented', - 'test_class_range', 'test_class_str', 'test_class_tuple', 'test_complex_bytearray', 'test_complex_bytes', - 'test_complex_class', 'test_complex_dict', 'test_complex_frozenset', 'test_complex_list', @@ -101,10 +98,8 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_float_str', 'test_float_tuple', - 'test_frozenset_bool', 'test_frozenset_bytearray', 'test_frozenset_bytes', - 'test_frozenset_class', 'test_frozenset_complex', 'test_frozenset_dict', 'test_frozenset_float', @@ -113,7 +108,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_frozenset_list', 'test_frozenset_range', 'test_frozenset_set', - 'test_frozenset_slice', 'test_frozenset_str', 'test_frozenset_tuple', @@ -129,7 +123,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_list_bytearray', 'test_list_bytes', - 'test_list_class', 'test_list_dict', 'test_list_frozenset', 'test_list_list', @@ -140,10 +133,7 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_None_bytearray', 'test_None_class', - 'test_None_frozenset', - 'test_None_range', 'test_None_set', - 'test_None_tuple', 'test_NotImplemented_bytearray', 'test_NotImplemented_bytes', @@ -179,7 +169,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_slice_bytearray', 'test_slice_bytes', - 'test_slice_class', 'test_slice_dict', 'test_slice_frozenset', 'test_slice_list', diff --git a/tests/builtins/test_frozenset.py b/tests/builtins/test_frozenset.py index 246c7d048e..7f36634feb 100644 --- a/tests/builtins/test_frozenset.py +++ b/tests/builtins/test_frozenset.py @@ -14,11 +14,7 @@ class BuiltinFrozensetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_bytes', 'test_complex', 'test_dict', - 'test_float', 'test_frozenset', - 'test_list', - 'test_None', - 'test_set', 'test_slice', 'test_str', 'test_tuple', diff --git a/tests/builtins/test_getattr.py b/tests/builtins/test_getattr.py index 4bae13b8e4..8044a8477d 100644 --- a/tests/builtins/test_getattr.py +++ b/tests/builtins/test_getattr.py @@ -44,30 +44,20 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa not_implemented = [ 'test_bool_class', - 'test_bool_frozenset', 'test_bytearray_class', 'test_bytearray_frozenset', 'test_bytes_class', - 'test_bytes_frozenset', - 'test_class_bytes', 'test_class_complex', 'test_class_float', - 'test_class_frozenset', 'test_class_list', - 'test_class_None', - 'test_class_NotImplemented', 'test_class_range', - 'test_class_set', - 'test_class_slice', 'test_class_str', 'test_complex_class', - 'test_complex_frozenset', - 'test_dict_class', 'test_dict_frozenset', 'test_float_frozenset', @@ -75,8 +65,6 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_frozenset_bool', 'test_frozenset_bytearray', 'test_frozenset_bytes', - 'test_frozenset_complex', - 'test_frozenset_dict', 'test_frozenset_float', 'test_frozenset_int', 'test_frozenset_list', @@ -85,7 +73,6 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_frozenset_slice', 'test_frozenset_tuple', - 'test_int_frozenset', 'test_list_frozenset', diff --git a/tests/builtins/test_hasattr.py b/tests/builtins/test_hasattr.py index 463990c123..00513be638 100644 --- a/tests/builtins/test_hasattr.py +++ b/tests/builtins/test_hasattr.py @@ -39,14 +39,11 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_bytes_class', - 'test_class_bytearray', 'test_class_bytes', 'test_class_complex', - 'test_class_dict', 'test_class_float', 'test_class_list', 'test_class_None', - 'test_class_NotImplemented', 'test_class_range', 'test_class_set', 'test_class_str', @@ -61,14 +58,12 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_frozenset_bytearray', 'test_frozenset_bytes', 'test_frozenset_class', - 'test_frozenset_complex', 'test_frozenset_dict', 'test_frozenset_float', 'test_frozenset_frozenset', 'test_frozenset_int', 'test_frozenset_list', 'test_frozenset_None', - 'test_frozenset_set', 'test_frozenset_slice', 'test_frozenset_str', 'test_frozenset_tuple', @@ -77,20 +72,16 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_list_class', 'test_list_frozenset', - 'test_None_class', 'test_None_frozenset', 'test_NotImplemented_class', - 'test_range_frozenset', 'test_set_class', - 'test_slice_class', 'test_slice_frozenset', 'test_str_class', 'test_str_frozenset', - 'test_tuple_class', ] diff --git a/tests/builtins/test_int.py b/tests/builtins/test_int.py index 5a8b74a308..f6c8e80c87 100644 --- a/tests/builtins/test_int.py +++ b/tests/builtins/test_int.py @@ -11,5 +11,4 @@ class BuiltinIntFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_frozenset', ] diff --git a/tests/builtins/test_issubclass.py b/tests/builtins/test_issubclass.py index 64b130eb6e..9edd5123fe 100644 --- a/tests/builtins/test_issubclass.py +++ b/tests/builtins/test_issubclass.py @@ -95,7 +95,6 @@ class BuiltinIssubclassFunctionTests(BuiltinFunctionTestCase, TranspileTestCase) not_implemented = [ 'test_bytes', 'test_dict', - 'test_range', 'test_set', 'test_str', 'test_tuple', diff --git a/tests/builtins/test_iter.py b/tests/builtins/test_iter.py index 8acaabde3c..d455591547 100644 --- a/tests/builtins/test_iter.py +++ b/tests/builtins/test_iter.py @@ -11,7 +11,6 @@ class BuiltinIterFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_class', 'test_range', 'test_str', ] diff --git a/tests/builtins/test_map.py b/tests/builtins/test_map.py index 14b7c12e9b..d2cc2dfc66 100644 --- a/tests/builtins/test_map.py +++ b/tests/builtins/test_map.py @@ -35,26 +35,17 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bool_bytearray', - 'test_bool_str', 'test_bytearray_bytearray', - 'test_bytearray_bytes', 'test_bytearray_dict', - 'test_bytearray_frozenset', - 'test_bytearray_set', - 'test_bytearray_str', 'test_bytes_bytearray', 'test_bytes_dict', 'test_bytes_set', 'test_class_bytearray', - 'test_class_class', 'test_class_dict', - 'test_class_float', - 'test_class_frozenset', 'test_class_int', - 'test_class_None', 'test_class_range', 'test_class_slice', 'test_class_tuple', @@ -72,19 +63,15 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_float_bytearray', 'test_float_bytes', - 'test_float_class', 'test_float_dict', 'test_float_frozenset', 'test_float_str', 'test_frozenset_bool', 'test_frozenset_bytearray', - 'test_frozenset_class', 'test_frozenset_int', 'test_frozenset_list', 'test_frozenset_None', - 'test_frozenset_NotImplemented', - 'test_frozenset_set', 'test_frozenset_tuple', 'test_int_bytearray', @@ -92,20 +79,16 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_int_str', 'test_list_bytearray', - 'test_list_bytes', 'test_list_class', 'test_list_dict', 'test_list_frozenset', 'test_None_bytearray', - 'test_None_bytes', - 'test_None_class', 'test_None_frozenset', 'test_None_set', 'test_None_str', 'test_NotImplemented_bytearray', - 'test_NotImplemented_class', 'test_NotImplemented_str', 'test_range_bytearray', @@ -113,27 +96,20 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_set_bytearray', 'test_set_bytes', - 'test_set_class', 'test_set_set', 'test_slice_bytearray', - 'test_slice_bytes', - 'test_slice_class', 'test_slice_dict', - 'test_slice_frozenset', - 'test_slice_set', 'test_slice_str', 'test_str_bytearray', 'test_str_dict', - 'test_str_frozenset', 'test_str_set', 'test_str_str', 'test_tuple_bytearray', 'test_tuple_bytes', 'test_tuple_dict', - 'test_tuple_frozenset', 'test_tuple_set', 'test_tuple_str', ] diff --git a/tests/builtins/test_next.py b/tests/builtins/test_next.py index 5656b0b0fd..ec03111a6f 100644 --- a/tests/builtins/test_next.py +++ b/tests/builtins/test_next.py @@ -35,5 +35,4 @@ class BuiltinNextFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["next"] not_implemented = [ - 'test_frozenset', ] diff --git a/tests/builtins/test_pow.py b/tests/builtins/test_pow.py index c057640df7..5fbece1e7c 100644 --- a/tests/builtins/test_pow.py +++ b/tests/builtins/test_pow.py @@ -121,39 +121,27 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_class_bool', 'test_class_bytearray', - 'test_class_bytes', - 'test_class_class', 'test_class_float', 'test_class_frozenset', 'test_class_int', - 'test_class_NotImplemented', 'test_class_set', 'test_class_tuple', 'test_complex_bool', - 'test_complex_bytearray', 'test_complex_class', 'test_complex_complex', - 'test_complex_float', - 'test_complex_frozenset', - 'test_complex_range', 'test_complex_int', - 'test_complex_NotImplemented', 'test_complex_set', 'test_complex_tuple', - 'test_dict_class', 'test_float_complex', 'test_float_float', 'test_frozenset_bytes', - 'test_frozenset_class', 'test_frozenset_float', - 'test_frozenset_frozenset', 'test_frozenset_range', 'test_frozenset_int', - 'test_frozenset_list', 'test_frozenset_None', 'test_frozenset_str', 'test_frozenset_tuple', @@ -167,13 +155,10 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_None_frozenset', - 'test_range_frozenset', - 'test_set_class', 'test_set_frozenset', 'test_slice_class', - 'test_slice_frozenset', 'test_str_frozenset', diff --git a/tests/builtins/test_property.py b/tests/builtins/test_property.py index 72310d6663..8ef3e2ed98 100644 --- a/tests/builtins/test_property.py +++ b/tests/builtins/test_property.py @@ -9,5 +9,4 @@ class BuiltinPropertyFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["property"] not_implemented = [ - 'test_frozenset', ] diff --git a/tests/builtins/test_set.py b/tests/builtins/test_set.py index 9083cde412..de3cdf308f 100644 --- a/tests/builtins/test_set.py +++ b/tests/builtins/test_set.py @@ -13,7 +13,6 @@ class BuiltinSetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_bytes', 'test_class', 'test_dict', - 'test_frozenset', 'test_str', 'test_tuple', ] diff --git a/tests/builtins/test_sorted.py b/tests/builtins/test_sorted.py index bef5aa84cd..c18c321aa8 100644 --- a/tests/builtins/test_sorted.py +++ b/tests/builtins/test_sorted.py @@ -27,7 +27,5 @@ class BuiltinSortedFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_bytes', - 'test_dict', 'test_set', ] diff --git a/tests/builtins/test_sum.py b/tests/builtins/test_sum.py index 2521000b78..283e33363b 100644 --- a/tests/builtins/test_sum.py +++ b/tests/builtins/test_sum.py @@ -31,9 +31,7 @@ class BuiltinSumFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_class', 'test_dict', 'test_frozenset', - 'test_set', 'test_str', ] diff --git a/tests/builtins/test_type.py b/tests/builtins/test_type.py index 831bacb278..d69265e50e 100644 --- a/tests/builtins/test_type.py +++ b/tests/builtins/test_type.py @@ -9,6 +9,4 @@ class BuiltinTypeFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["type"] not_implemented = [ - 'test_class', - 'test_frozenset', ] diff --git a/tests/builtins/test_zip.py b/tests/builtins/test_zip.py index e830a04d26..01d212a7e0 100644 --- a/tests/builtins/test_zip.py +++ b/tests/builtins/test_zip.py @@ -38,11 +38,9 @@ class BuiltinZipFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_bytearray', 'test_bytes', 'test_class', - 'test_complex', 'test_dict', 'test_frozenset', 'test_list', - 'test_NotImplemented', 'test_range', 'test_set', 'test_slice', diff --git a/tests/datatypes/test_NoneType.py b/tests/datatypes/test_NoneType.py index 13b8e9c2ca..bb5fe6d4c1 100644 --- a/tests/datatypes/test_NoneType.py +++ b/tests/datatypes/test_NoneType.py @@ -32,25 +32,18 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_add_class', - 'test_direct_ne_bool', 'test_direct_ne_class', - 'test_direct_ne_complex', 'test_direct_ne_dict', - 'test_direct_ne_float', 'test_direct_ne_frozenset', 'test_direct_ne_int', 'test_direct_ne_NotImplemented', 'test_direct_ne_range', 'test_direct_ne_set', 'test_direct_ne_slice', - 'test_direct_ne_str', - 'test_direct_le_bytes', 'test_direct_lt_bytes', 'test_direct_ge_frozenset', - 'test_direct_gt_frozenset', - 'test_direct_le_frozenset', 'test_direct_lt_frozenset', 'test_eq_class', @@ -62,7 +55,6 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', 'test_le_frozenset', - 'test_lshift_class', 'test_lshift_frozenset', 'test_lt_class', @@ -76,24 +68,19 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_class', 'test_ne_class', - 'test_ne_frozenset', 'test_or_class', 'test_or_frozenset', 'test_power_class', - 'test_rshift_class', 'test_rshift_frozenset', 'test_subscr_class', - 'test_subscr_frozenset', 'test_subtract_class', - 'test_subtract_frozenset', 'test_true_divide_class', - 'test_true_divide_frozenset', 'test_xor_class', 'test_xor_frozenset', @@ -109,24 +96,18 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) 'test_and_class', 'test_floor_divide_class', - 'test_floor_divide_complex', - 'test_lshift_class', 'test_lshift_frozenset', 'test_modulo_complex', 'test_multiply_bytes', 'test_multiply_bytearray', - 'test_multiply_class', - 'test_multiply_frozenset', 'test_multiply_list', 'test_multiply_str', 'test_multiply_tuple', - 'test_power_class', - 'test_power_frozenset', 'test_rshift_class', 'test_rshift_frozenset', @@ -135,6 +116,4 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) 'test_true_divide_class', - 'test_xor_class', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_NotImplemented.py b/tests/datatypes/test_NotImplemented.py index a938abde56..9b22824fcd 100644 --- a/tests/datatypes/test_NotImplemented.py +++ b/tests/datatypes/test_NotImplemented.py @@ -20,15 +20,12 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_add_class', 'test_add_frozenset', - 'test_and_class', - 'test_and_frozenset', 'test_direct_eq_bytes', 'test_direct_ne_bytes', 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', - 'test_direct_le_frozenset', 'test_direct_lt_frozenset', 'test_direct_ne_frozenset', @@ -46,11 +43,8 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_lshift_frozenset', 'test_lt_class', - 'test_lt_frozenset', - 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytes', 'test_multiply_bytearray', @@ -69,7 +63,6 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_true_divide_class', - 'test_xor_frozenset', ] @@ -80,7 +73,6 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', 'test_eq_bytearray', 'test_eq_class', @@ -111,9 +103,7 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_lt_complex', 'test_lt_frozenset', - 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytes', 'test_multiply_bytearray', @@ -128,14 +118,11 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_ne_complex', 'test_ne_frozenset', - 'test_or_class', - 'test_or_frozenset', 'test_power_class', 'test_power_frozenset', 'test_rshift_class', - 'test_rshift_frozenset', 'test_subscr_bytearray', 'test_subscr_bytes', diff --git a/tests/datatypes/test_bool.py b/tests/datatypes/test_bool.py index 509d4f49d8..9419726559 100644 --- a/tests/datatypes/test_bool.py +++ b/tests/datatypes/test_bool.py @@ -38,19 +38,12 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', - 'test_direct_ge_bytes', 'test_direct_gt_bytes', - 'test_direct_le_bytes', 'test_direct_lt_bytes', 'test_direct_ne_bytes', - 'test_direct_ge_frozenset', - 'test_direct_gt_frozenset', 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', - 'test_direct_ne_frozenset', 'test_eq_class', 'test_eq_frozenset', @@ -68,12 +61,10 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lshift_frozenset', 'test_lt_class', - 'test_lt_frozenset', 'test_modulo_complex', 'test_modulo_frozenset', - 'test_multiply_class', 'test_multiply_complex', 'test_multiply_frozenset', @@ -85,7 +76,6 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_complex', 'test_rshift_class', - 'test_rshift_frozenset', 'test_subscr_bool', 'test_subscr_bytearray', @@ -134,12 +124,9 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'bool' not_implemented = [ - 'test_add_class', 'test_add_complex', 'test_add_float', - 'test_add_frozenset', - 'test_and_class', 'test_and_int', 'test_floor_divide_bool', @@ -148,13 +135,10 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_floor_divide_frozenset', 'test_floor_divide_int', - 'test_lshift_class', 'test_modulo_bool', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_float', - 'test_modulo_frozenset', 'test_modulo_int', 'test_multiply_bool', @@ -173,7 +157,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_or_int', 'test_power_bool', - 'test_power_class', 'test_power_complex', 'test_power_float', 'test_power_int', @@ -188,7 +171,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_true_divide_bool', 'test_true_divide_complex', 'test_true_divide_float', - 'test_true_divide_frozenset', 'test_true_divide_int', 'test_xor_class', diff --git a/tests/datatypes/test_bytearray.py b/tests/datatypes/test_bytearray.py index 5e1d062923..be205a921f 100644 --- a/tests/datatypes/test_bytearray.py +++ b/tests/datatypes/test_bytearray.py @@ -33,14 +33,10 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_class', - 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', 'test_direct_eq_frozenset', - 'test_direct_gt_frozenset', - 'test_direct_le_frozenset', 'test_direct_ne_frozenset', 'test_eq_class', @@ -55,7 +51,6 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_frozenset', 'test_lshift_class', - 'test_lshift_frozenset', 'test_lt_class', @@ -63,22 +58,16 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_complex', 'test_modulo_frozenset', - 'test_multiply_class', 'test_ne_class', 'test_ne_frozenset', - 'test_or_class', 'test_or_frozenset', 'test_power_class', 'test_power_frozenset', - 'test_rshift_class', - 'test_rshift_frozenset', - 'test_subscr_class', - 'test_subscr_frozenset', 'test_subtract_frozenset', @@ -104,21 +93,16 @@ class InplaceBytearrayOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_class', - 'test_or_class', 'test_power_class', - 'test_rshift_class', - 'test_rshift_frozenset', 'test_subtract_class', 'test_true_divide_class', 'test_true_divide_frozenset', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_bytes.py b/tests/datatypes/test_bytes.py index 8a2aa4b5dc..dcbcb30e0c 100644 --- a/tests/datatypes/test_bytes.py +++ b/tests/datatypes/test_bytes.py @@ -55,7 +55,6 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'bytes' not_implemented = [ - 'test_add_class', 'test_add_frozenset', 'test_and_class', @@ -63,36 +62,24 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_eq_bytearray', 'test_direct_eq_bytes', - 'test_direct_eq_class', 'test_direct_eq_dict', 'test_direct_eq_frozenset', 'test_direct_eq_int', 'test_direct_eq_none', 'test_direct_eq_set', - 'test_direct_eq_tuple', - 'test_direct_ge_bool', 'test_direct_ge_bytearray', - 'test_direct_ge_complex', - 'test_direct_ge_dict', 'test_direct_ge_frozenset', 'test_direct_ge_none', 'test_direct_ge_tuple', - 'test_direct_gt_bool', 'test_direct_gt_bytearray', - 'test_direct_gt_bytes', - 'test_direct_gt_class', - 'test_direct_gt_dict', 'test_direct_gt_frozenset', 'test_direct_gt_int', - 'test_direct_gt_list', 'test_direct_gt_none', 'test_direct_gt_set', 'test_direct_gt_str', - 'test_direct_gt_tuple', - 'test_direct_le_bool', 'test_direct_le_bytearray', 'test_direct_le_class', 'test_direct_le_complex', @@ -101,24 +88,19 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_le_list', 'test_direct_le_none', 'test_direct_le_set', - 'test_direct_le_tuple', - 'test_direct_lt_bool', 'test_direct_lt_bytearray', 'test_direct_lt_class', 'test_direct_lt_complex', 'test_direct_lt_int', 'test_direct_lt_list', 'test_direct_lt_none', - 'test_direct_lt_tuple', 'test_direct_ne_bool', 'test_direct_ne_bytearray', 'test_direct_ne_bytes', 'test_direct_ne_complex', - 'test_direct_ne_float', 'test_direct_ne_frozenset', - 'test_direct_ne_int', 'test_direct_ne_list', 'test_direct_ne_none', 'test_direct_ne_set', @@ -133,23 +115,18 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_eq_bytearray', 'test_eq_class', - 'test_eq_frozenset', 'test_ne_class', - 'test_ne_frozenset', 'test_ge_class', 'test_gt_class', 'test_le_class', - 'test_le_frozenset', 'test_lt_class', - 'test_lt_frozenset', 'test_lshift_class', - 'test_lshift_frozenset', 'test_modulo_None', 'test_modulo_bytes', @@ -162,7 +139,6 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_tuple', 'test_multiply_class', - 'test_multiply_frozenset', 'test_or_class', @@ -171,7 +147,6 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_rshift_frozenset', - 'test_subtract_class', 'test_subtract_frozenset', 'test_true_divide_frozenset', @@ -188,42 +163,29 @@ class InplaceBytesOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_and_frozenset', 'test_floor_divide_class', - 'test_floor_divide_complex', 'test_lshift_class', - 'test_lshift_frozenset', 'test_modulo_None', - 'test_modulo_NotImplemented', 'test_modulo_bool', 'test_modulo_bytearray', 'test_modulo_bytes', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_dict', 'test_modulo_frozenset', - 'test_modulo_int', 'test_modulo_list', 'test_modulo_range', 'test_modulo_set', - 'test_modulo_slice', 'test_modulo_tuple', - 'test_multiply_class', 'test_or_class', - 'test_or_frozenset', - 'test_power_class', - 'test_power_frozenset', 'test_rshift_class', 'test_rshift_frozenset', 'test_subtract_class', - 'test_subtract_frozenset', - 'test_true_divide_class', - 'test_true_divide_frozenset', ] diff --git a/tests/datatypes/test_complex.py b/tests/datatypes/test_complex.py index 3c1d9aa47c..66aaf69835 100644 --- a/tests/datatypes/test_complex.py +++ b/tests/datatypes/test_complex.py @@ -67,15 +67,12 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_add_class', - 'test_direct_eq_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', - 'test_direct_eq_float', 'test_direct_eq_int', 'test_direct_ne_bool', - 'test_direct_ne_float', 'test_direct_ne_int', 'test_eq_class', @@ -83,20 +80,16 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ge_class', - 'test_ge_frozenset', 'test_gt_class', 'test_le_class', 'test_le_frozenset', - 'test_lshift_class', 'test_lshift_frozenset', 'test_lt_class', - 'test_lt_frozenset', - 'test_modulo_class', 'test_multiply_class', @@ -108,7 +101,6 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_frozenset', 'test_rshift_class', - 'test_rshift_frozenset', 'test_subscr_class', @@ -117,7 +109,6 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_true_divide_class', 'test_xor_class', - 'test_xor_frozenset', ] @@ -126,24 +117,15 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_bool', - 'test_add_class', 'test_add_complex', 'test_add_float', 'test_add_int', - 'test_and_None', - 'test_and_NotImplemented', 'test_and_bool', - 'test_and_bytearray', 'test_and_bytes', - 'test_and_class', - 'test_and_dict', - 'test_and_float', 'test_and_int', 'test_and_none', - 'test_and_set', 'test_and_str', - 'test_and_tuple', 'test_eq_None', 'test_eq_NotImplemented', @@ -242,11 +224,8 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_lshift_None', 'test_lshift_NotImplemented', 'test_lshift_slice', - 'test_lshift_bool', - 'test_lshift_bytearray', 'test_lshift_bytes', 'test_lshift_class', - 'test_lshift_complex', 'test_lshift_float', 'test_lshift_int', 'test_lshift_list', @@ -327,7 +306,6 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_range', 'test_power_bool', 'test_power_bytes', - 'test_power_class', 'test_power_complex', 'test_power_dict', 'test_power_float', @@ -336,19 +314,14 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_list', 'test_power_none', 'test_power_set', - 'test_power_str', - 'test_power_tuple', 'test_rshift_None', 'test_rshift_slice', 'test_rshift_bytearray', - 'test_rshift_complex', 'test_rshift_int', 'test_rshift_list', 'test_rshift_none', 'test_rshift_set', - 'test_rshift_str', - 'test_rshift_tuple', 'test_subscr_None', 'test_subscr_NotImplemented', @@ -376,19 +349,15 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_subtract_frozenset', 'test_subtract_int', - 'test_true_divide_range', 'test_true_divide_bool', - 'test_true_divide_bytearray', 'test_true_divide_class', 'test_true_divide_complex', 'test_true_divide_dict', 'test_true_divide_float', 'test_true_divide_frozenset', 'test_true_divide_int', - 'test_true_divide_list', 'test_true_divide_none', 'test_true_divide_set', 'test_true_divide_tuple', - 'test_xor_class', ] diff --git a/tests/datatypes/test_dict.py b/tests/datatypes/test_dict.py index 8bb7e0059d..4cfd844097 100644 --- a/tests/datatypes/test_dict.py +++ b/tests/datatypes/test_dict.py @@ -310,44 +310,33 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_class', 'test_and_frozenset', - 'test_direct_ge_bytes', - 'test_direct_gt_bytes', - 'test_direct_le_bytes', 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', - 'test_direct_lt_frozenset', 'test_direct_ne_frozenset', 'test_eq_class', 'test_eq_frozenset', 'test_ge_class', - 'test_ge_frozenset', 'test_gt_class', - 'test_gt_frozenset', 'test_le_class', 'test_lt_class', - 'test_lt_frozenset', 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytearray', - 'test_multiply_frozenset', 'test_ne_class', 'test_ne_frozenset', - 'test_or_class', - 'test_power_class', 'test_power_frozenset', 'test_rshift_frozenset', @@ -357,7 +346,6 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_complex', 'test_subscr_slice', - 'test_subtract_frozenset', 'test_true_divide_frozenset', @@ -369,10 +357,7 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'dict' not_implemented = [ - 'test_add_class', - 'test_add_frozenset', - 'test_and_frozenset', 'test_floor_divide_complex', @@ -390,7 +375,6 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_rshift_frozenset', 'test_subtract_class', - 'test_subtract_frozenset', 'test_true_divide_class', 'test_true_divide_frozenset', diff --git a/tests/datatypes/test_float.py b/tests/datatypes/test_float.py index a162992315..26f367b143 100644 --- a/tests/datatypes/test_float.py +++ b/tests/datatypes/test_float.py @@ -110,7 +110,6 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_frozenset', - 'test_and_class', 'test_and_frozenset', 'test_direct_eq_bytes', @@ -118,7 +117,6 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_lt_bytes', 'test_direct_ne_bytes', - 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', @@ -126,20 +124,17 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_eq_class', 'test_ge_class', - 'test_ge_frozenset', 'test_gt_class', 'test_le_class', 'test_le_frozenset', - 'test_lshift_class', 'test_lshift_frozenset', 'test_lt_class', 'test_lt_frozenset', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_frozenset', @@ -160,7 +155,6 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_float', 'test_power_frozenset', - 'test_rshift_frozenset', 'test_subscr_bool', 'test_subscr_bytearray', @@ -181,7 +175,6 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_tuple', 'test_subtract_complex', - 'test_subtract_frozenset', 'test_true_divide_class', 'test_true_divide_complex', @@ -202,11 +195,8 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_floor_divide_class', - 'test_lshift_class', - 'test_lshift_frozenset', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytearray', 'test_multiply_bytes', @@ -225,7 +215,6 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_float', 'test_power_frozenset', - 'test_rshift_class', 'test_rshift_frozenset', 'test_subtract_class', diff --git a/tests/datatypes/test_frozenset.py b/tests/datatypes/test_frozenset.py index 0604a9dd32..18b6b8150b 100644 --- a/tests/datatypes/test_frozenset.py +++ b/tests/datatypes/test_frozenset.py @@ -333,22 +333,16 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_class', 'test_direct_eq_bytearray', - 'test_direct_eq_bytes', 'test_direct_eq_dict', 'test_direct_eq_int', - 'test_direct_eq_range', 'test_direct_eq_slice', - 'test_direct_eq_tuple', 'test_direct_ne_bool', 'test_direct_ne_bytes', 'test_direct_ne_dict', 'test_direct_ne_float', 'test_direct_ne_frozenset', - 'test_direct_ne_None', - 'test_direct_ne_NotImplemented', 'test_direct_ne_set', - 'test_direct_ne_str', 'test_direct_ne_tuple', 'test_direct_le_complex', @@ -360,35 +354,27 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_le_slice', 'test_direct_le_tuple', - 'test_direct_lt_bool', 'test_direct_lt_bytearray', 'test_direct_lt_bytes', 'test_direct_lt_class', 'test_direct_lt_complex', 'test_direct_lt_float', - 'test_direct_lt_frozenset', 'test_direct_lt_int', 'test_direct_lt_list', 'test_direct_lt_range', 'test_direct_lt_slice', 'test_direct_lt_str', - 'test_direct_lt_tuple', 'test_direct_ge_bool', 'test_direct_ge_bytearray', 'test_direct_ge_class', 'test_direct_ge_complex', - 'test_direct_ge_dict', 'test_direct_ge_float', 'test_direct_ge_frozenset', - 'test_direct_ge_list', 'test_direct_ge_tuple', - 'test_direct_gt_bool', 'test_direct_gt_dict', 'test_direct_gt_float', - 'test_direct_gt_int', - 'test_direct_gt_None', 'test_direct_gt_NotImplemented', 'test_direct_gt_range', 'test_direct_gt_str', @@ -396,14 +382,10 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_eq_class', - 'test_floor_divide_bool', 'test_floor_divide_bytearray', 'test_floor_divide_bytes', - 'test_floor_divide_dict', - 'test_floor_divide_float', 'test_floor_divide_int', 'test_floor_divide_list', - 'test_floor_divide_None', 'test_floor_divide_range', 'test_floor_divide_str', @@ -414,22 +396,18 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', 'test_lshift_bytearray', - 'test_lshift_bytes', 'test_lshift_dict', 'test_lshift_float', 'test_lshift_frozenset', 'test_lshift_int', 'test_lshift_list', 'test_lshift_None', - 'test_lshift_range', 'test_lshift_set', 'test_lshift_slice', - 'test_lshift_str', 'test_lshift_tuple', 'test_lt_class', - 'test_modulo_bytes', 'test_modulo_complex', 'test_modulo_float', 'test_modulo_int', @@ -437,42 +415,29 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_NotImplemented', 'test_modulo_range', 'test_modulo_set', - 'test_modulo_slice', 'test_multiply_class', - 'test_ne_bytes', 'test_ne_class', 'test_ne_complex', - 'test_ne_dict', - 'test_ne_float', 'test_ne_frozenset', 'test_ne_NotImplemented', 'test_ne_set', - 'test_power_bytes', 'test_power_class', - 'test_power_complex', 'test_power_dict', 'test_power_float', 'test_power_frozenset', - 'test_power_int', 'test_power_list', 'test_power_None', 'test_power_NotImplemented', 'test_power_set', 'test_power_slice', - 'test_power_tuple', - 'test_rshift_bool', 'test_rshift_bytearray', 'test_rshift_bytes', - 'test_rshift_class', - 'test_rshift_complex', 'test_rshift_dict', - 'test_rshift_list', - 'test_rshift_None', 'test_rshift_slice', 'test_subscr_bool', @@ -496,13 +461,11 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subtract_class', 'test_true_divide_bytearray', - 'test_true_divide_bytes', 'test_true_divide_class', 'test_true_divide_complex', 'test_true_divide_dict', 'test_true_divide_float', 'test_true_divide_list', - 'test_true_divide_None', 'test_true_divide_NotImplemented', 'test_true_divide_range', 'test_true_divide_set', @@ -515,97 +478,68 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase data_type = 'frozenset' not_implemented = [ - 'test_add_bool', 'test_add_bytes', 'test_add_class', 'test_add_float', 'test_add_int', 'test_add_list', 'test_add_None', - 'test_add_NotImplemented', 'test_add_slice', 'test_and_bool', 'test_and_bytearray', 'test_and_class', 'test_and_dict', - 'test_and_float', 'test_and_None', 'test_and_range', 'test_and_set', 'test_and_slice', - 'test_and_str', 'test_and_tuple', - 'test_floor_divide_bytearray', - 'test_floor_divide_class', 'test_floor_divide_float', - 'test_floor_divide_frozenset', 'test_floor_divide_int', 'test_floor_divide_list', - 'test_floor_divide_None', - 'test_floor_divide_NotImplemented', 'test_floor_divide_set', 'test_floor_divide_slice', - 'test_lshift_bool', - 'test_lshift_bytearray', 'test_lshift_bytes', - 'test_lshift_class', - 'test_lshift_complex', - 'test_lshift_frozenset', 'test_lshift_int', - 'test_lshift_NotImplemented', 'test_lshift_set', 'test_lshift_str', - 'test_modulo_bool', 'test_modulo_bytearray', 'test_modulo_bytes', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_frozenset', - 'test_modulo_list', 'test_modulo_set', - 'test_modulo_str', 'test_modulo_tuple', 'test_multiply_bool', 'test_multiply_bytearray', - 'test_multiply_bytes', 'test_multiply_class', 'test_multiply_complex', 'test_multiply_int', - 'test_multiply_list', 'test_multiply_None', 'test_multiply_slice', 'test_multiply_tuple', 'test_or_bool', 'test_or_bytes', - 'test_or_class', - 'test_or_complex', 'test_or_frozenset', 'test_or_list', - 'test_or_None', 'test_or_range', 'test_or_set', 'test_or_slice', - 'test_or_tuple', 'test_power_bool', 'test_power_bytearray', - 'test_power_bytes', 'test_power_dict', 'test_power_float', - 'test_power_frozenset', - 'test_power_int', 'test_power_list', 'test_power_range', 'test_power_set', 'test_power_slice', 'test_power_str', - 'test_power_tuple', 'test_rshift_bool', 'test_rshift_bytearray', @@ -619,12 +553,9 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_subtract_bool', 'test_subtract_bytearray', 'test_subtract_bytes', - 'test_subtract_dict', - 'test_subtract_float', 'test_subtract_frozenset', 'test_subtract_int', 'test_subtract_list', - 'test_subtract_None', 'test_subtract_range', 'test_subtract_set', 'test_subtract_str', @@ -633,9 +564,7 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_true_divide_bytearray', 'test_true_divide_bytes', 'test_true_divide_complex', - 'test_true_divide_frozenset', 'test_true_divide_int', - 'test_true_divide_list', 'test_true_divide_None', 'test_true_divide_NotImplemented', 'test_true_divide_range', @@ -646,9 +575,7 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_xor_frozenset', 'test_xor_int', 'test_xor_list', - 'test_xor_None', 'test_xor_NotImplemented', - 'test_xor_range', 'test_xor_set', 'test_xor_slice', 'test_xor_str', diff --git a/tests/datatypes/test_int.py b/tests/datatypes/test_int.py index 5480c49fcd..8db7e0dbc2 100644 --- a/tests/datatypes/test_int.py +++ b/tests/datatypes/test_int.py @@ -41,10 +41,8 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_frozenset', 'test_direct_eq_bytes', - 'test_direct_ge_bytes', 'test_direct_gt_bytes', 'test_direct_le_bytes', - 'test_direct_lt_bytes', 'test_direct_ne_bytes', 'test_direct_eq_frozenset', @@ -61,21 +59,17 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lshift_frozenset', 'test_lt_class', - 'test_lt_frozenset', 'test_modulo_class', 'test_modulo_complex', - 'test_multiply_class', 'test_multiply_complex', 'test_multiply_frozenset', 'test_ne_class', 'test_ne_frozenset', - 'test_or_class', - 'test_power_class', 'test_power_complex', 'test_power_frozenset', 'test_power_float', @@ -87,11 +81,8 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subtract_frozenset', - 'test_true_divide_class', 'test_true_divide_complex', - 'test_true_divide_frozenset', - 'test_xor_class', ] @@ -130,14 +121,12 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_int', - 'test_subtract_class', 'test_subtract_complex', 'test_subtract_frozenset', 'test_subtract_float', 'test_true_divide_class', 'test_true_divide_complex', - 'test_true_divide_frozenset', 'test_xor_class', 'test_xor_frozenset', diff --git a/tests/datatypes/test_list.py b/tests/datatypes/test_list.py index 43599c42ae..fea66d16f5 100644 --- a/tests/datatypes/test_list.py +++ b/tests/datatypes/test_list.py @@ -603,31 +603,24 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_add_frozenset', - 'test_direct_gt_bytes', 'test_direct_le_bytes', 'test_direct_ne_bytes', - 'test_direct_gt_list', 'test_direct_le_list', 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', - 'test_direct_le_frozenset', - 'test_direct_ne_frozenset', 'test_eq_class', 'test_ge_class', - 'test_ge_frozenset', - 'test_ge_list', 'test_gt_class', 'test_le_class', 'test_le_list', - 'test_lshift_frozenset', 'test_lt_class', 'test_lt_frozenset', @@ -636,17 +629,14 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_class', 'test_modulo_complex', - 'test_multiply_class', 'test_multiply_frozenset', 'test_ne_class', 'test_ne_frozenset', - 'test_or_class', 'test_power_class', - 'test_rshift_class', 'test_rshift_frozenset', 'test_subscr_bool', @@ -673,7 +663,6 @@ class InplaceListOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_set', 'test_add_str', - 'test_and_class', 'test_floor_divide_class', 'test_floor_divide_complex', @@ -682,11 +671,9 @@ class InplaceListOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_lshift_class', 'test_lshift_frozenset', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_frozenset', - 'test_multiply_frozenset', 'test_power_class', @@ -694,9 +681,7 @@ class InplaceListOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_rshift_class', 'test_rshift_frozenset', - 'test_subtract_frozenset', - 'test_true_divide_class', 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_range.py b/tests/datatypes/test_range.py index d1007a50b2..9082be3f9e 100644 --- a/tests/datatypes/test_range.py +++ b/tests/datatypes/test_range.py @@ -93,62 +93,42 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_add_frozenset', 'test_and_class', - 'test_and_frozenset', 'test_direct_eq_frozenset', - 'test_direct_gt_frozenset', 'test_direct_le_frozenset', 'test_direct_lt_frozenset', - 'test_direct_ne_frozenset', 'test_direct_eq_range', 'test_direct_ne_range', 'test_eq_class', - 'test_eq_frozenset', 'test_eq_range', - 'test_ge_bool', 'test_ge_bytearray', 'test_ge_class', - 'test_ge_dict', - 'test_ge_int', - 'test_ge_None', 'test_ge_range', - 'test_ge_set', - 'test_ge_str', 'test_ge_tuple', 'test_gt_bool', 'test_gt_class', 'test_gt_float', 'test_gt_frozenset', - 'test_gt_None', 'test_gt_set', 'test_gt_tuple', 'test_le_bool', - 'test_le_bytearray', - 'test_le_bytes', 'test_le_class', - 'test_le_complex', - 'test_le_frozenset', - 'test_le_None', 'test_le_range', - 'test_le_slice', 'test_lshift_class', - 'test_lshift_frozenset', 'test_lt_bool', 'test_lt_class', 'test_lt_dict', 'test_lt_frozenset', - 'test_lt_int', 'test_lt_list', 'test_lt_range', 'test_lt_set', - 'test_lt_slice', 'test_lt_tuple', 'test_modulo_complex', @@ -186,7 +166,6 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_str', 'test_subscr_tuple', - 'test_subtract_class', 'test_xor_class', @@ -211,15 +190,11 @@ class InplaceRangeOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_class', 'test_modulo_complex', - 'test_multiply_class', 'test_multiply_frozenset', 'test_or_frozenset', - 'test_power_class', - 'test_rshift_class', - 'test_rshift_frozenset', 'test_subtract_class', diff --git a/tests/datatypes/test_set.py b/tests/datatypes/test_set.py index 941f285f30..475d8d4d93 100644 --- a/tests/datatypes/test_set.py +++ b/tests/datatypes/test_set.py @@ -365,33 +365,21 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_and_class', 'test_direct_eq_bytes', - 'test_direct_eq_set', 'test_direct_ge_bytearray', 'test_direct_ge_bytes', 'test_direct_gt_bytearray', 'test_direct_gt_bytes', 'test_direct_gt_set', - 'test_direct_le_bytearray', 'test_direct_le_bytes', - 'test_direct_le_set', 'test_direct_lt_bytearray', 'test_direct_lt_set', - 'test_direct_ne_bytearray', - 'test_direct_ne_bytes', - 'test_direct_eq_frozenset', - 'test_direct_ge_frozenset', - 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', 'test_direct_ne_frozenset', - 'test_direct_eq_slice', - 'test_direct_ge_slice', 'test_direct_le_slice', 'test_direct_gt_tuple', - 'test_direct_le_tuple', 'test_eq_class', @@ -407,7 +395,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytearray', 'test_multiply_bytes', @@ -419,7 +406,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_rshift_class', - 'test_subtract_class', 'test_subscr_class', 'test_subscr_frozenset', @@ -442,7 +428,6 @@ class InplaceSetOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_and_set', - 'test_modulo_class', 'test_modulo_complex', diff --git a/tests/datatypes/test_slice.py b/tests/datatypes/test_slice.py index f3c47727c9..146dd83b24 100644 --- a/tests/datatypes/test_slice.py +++ b/tests/datatypes/test_slice.py @@ -74,8 +74,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'slice' not_implemented = [ - 'test_add_class', - 'test_add_frozenset', 'test_direct_ge_frozenset', @@ -99,47 +97,32 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ge_class', 'test_ge_complex', 'test_ge_dict', - 'test_ge_int', - 'test_ge_None', 'test_ge_NotImplemented', - 'test_ge_range', 'test_ge_slice', - 'test_ge_str', - 'test_ge_tuple', - 'test_gt_bool', 'test_gt_bytearray', - 'test_gt_bytes', 'test_gt_class', 'test_gt_dict', 'test_gt_float', 'test_gt_frozenset', - 'test_gt_list', - 'test_gt_range', 'test_gt_set', 'test_gt_slice', - 'test_le_bytearray', - 'test_le_bytes', 'test_le_class', 'test_le_complex', 'test_le_frozenset', 'test_le_list', - 'test_le_None', 'test_le_NotImplemented', 'test_le_set', 'test_le_slice', 'test_lshift_class', - 'test_lt_bool', 'test_lt_class', 'test_lt_float', 'test_lt_int', 'test_lt_None', - 'test_lt_set', 'test_lt_slice', - 'test_lt_tuple', 'test_modulo_class', 'test_modulo_complex', @@ -147,8 +130,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_bytearray', 'test_multiply_bytes', - 'test_multiply_class', - 'test_multiply_frozenset', 'test_multiply_list', 'test_multiply_str', 'test_multiply_tuple', @@ -158,11 +139,8 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_slice', 'test_or_class', - 'test_or_frozenset', - 'test_power_frozenset', - 'test_rshift_class', 'test_subscr_bool', 'test_subscr_bytearray', @@ -194,8 +172,6 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_and_class', - 'test_lshift_class', - 'test_lshift_frozenset', 'test_modulo_complex', @@ -210,9 +186,7 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_frozenset', 'test_rshift_class', - 'test_rshift_frozenset', - 'test_subtract_class', 'test_true_divide_class', 'test_true_divide_frozenset', diff --git a/tests/datatypes/test_str.py b/tests/datatypes/test_str.py index 8f9ffd6921..566af23014 100644 --- a/tests/datatypes/test_str.py +++ b/tests/datatypes/test_str.py @@ -708,7 +708,6 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_gt_frozenset', 'test_eq_class', - 'test_eq_frozenset', 'test_ge_class', 'test_ge_frozenset', @@ -745,12 +744,9 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_class', 'test_ne_frozenset', - 'test_or_class', 'test_power_frozenset', - 'test_rshift_class', - 'test_rshift_frozenset', 'test_subscr_bool', 'test_subscr_class', @@ -773,7 +769,6 @@ class InplaceStrOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_class', 'test_add_frozenset', - 'test_and_class', 'test_and_frozenset', 'test_lshift_class', @@ -801,13 +796,9 @@ class InplaceStrOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_or_class', 'test_power_class', - 'test_power_frozenset', - 'test_subtract_class', - 'test_subtract_frozenset', - 'test_true_divide_class', 'test_true_divide_frozenset', 'test_xor_class', diff --git a/tests/datatypes/test_tuple.py b/tests/datatypes/test_tuple.py index 0c02e65109..ee7701e135 100644 --- a/tests/datatypes/test_tuple.py +++ b/tests/datatypes/test_tuple.py @@ -280,7 +280,6 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_lt_bytes', 'test_direct_ne_bytes', - 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', @@ -290,17 +289,14 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_gt_tuple', 'test_eq_class', - 'test_eq_frozenset', 'test_ge_class', 'test_gt_class', 'test_gt_frozenset', - 'test_gt_tuple', 'test_le_class', 'test_le_frozenset', - 'test_le_tuple', 'test_lt_class', @@ -309,7 +305,6 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_class', 'test_modulo_complex', - 'test_multiply_class', 'test_ne_class', 'test_ne_frozenset', @@ -319,20 +314,17 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_frozenset', - 'test_rshift_frozenset', 'test_subscr_bool', 'test_subscr_class', 'test_subscr_slice', - 'test_subtract_class', 'test_subtract_frozenset', 'test_true_divide_class', 'test_true_divide_frozenset', 'test_xor_class', - 'test_xor_frozenset', ] @@ -340,12 +332,9 @@ class InplaceTupleOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'tuple' not_implemented = [ - 'test_add_class', - 'test_and_class', 'test_and_frozenset', - 'test_lshift_class', 'test_modulo_complex', 'test_modulo_frozenset', From 70cc0eb644db8c7bed41ef1a8c1b2f59f320ce98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 12:24:11 -0700 Subject: [PATCH 06/25] =?UTF-8?q?Remove=20=E2=80=9CUnexpectedly=20success?= =?UTF-8?q?=E2=80=9D=20tests=20from=20various=20not=5Fimplemented?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatically generated (with local hack script) from CI log: https://s3.amazonaws.com/archive.travis-ci.org/jobs/234934327/log.txt?X-Amz-Expires=30&X-Amz-Date=20170522T192249Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJRYRXRSVGNKPKO5A/20170522/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=809cbdac431e2f1223406e4959fb1ef5947ae8bf07bf2ef037897415bc0a291c --- tests/builtins/test_all.py | 2 - tests/builtins/test_any.py | 1 - tests/builtins/test_bin.py | 2 - tests/builtins/test_bool.py | 1 - tests/builtins/test_delattr.py | 14 ----- tests/builtins/test_dict.py | 1 - tests/builtins/test_divmod.py | 18 ------ tests/builtins/test_enumerate.py | 3 - tests/builtins/test_filter.py | 14 ----- tests/builtins/test_frozenset.py | 2 - tests/builtins/test_getattr.py | 15 ----- tests/builtins/test_hasattr.py | 10 --- tests/builtins/test_list.py | 1 - tests/builtins/test_map.py | 27 -------- tests/builtins/test_max.py | 2 - tests/builtins/test_oct.py | 2 - tests/builtins/test_ord.py | 1 - tests/builtins/test_pow.py | 21 ------- tests/builtins/test_range.py | 1 - tests/builtins/test_set.py | 1 - tests/builtins/test_sum.py | 3 - tests/builtins/test_zip.py | 1 - tests/datatypes/test_NoneType.py | 13 ---- tests/datatypes/test_NotImplemented.py | 18 ------ tests/datatypes/test_bool.py | 17 ----- tests/datatypes/test_bytearray.py | 13 ---- tests/datatypes/test_bytes.py | 36 ----------- tests/datatypes/test_complex.py | 24 ------- tests/datatypes/test_dict.py | 11 ---- tests/datatypes/test_float.py | 15 ----- tests/datatypes/test_frozenset.py | 87 -------------------------- tests/datatypes/test_int.py | 17 ----- tests/datatypes/test_list.py | 18 ------ tests/datatypes/test_range.py | 22 ------- tests/datatypes/test_set.py | 19 ------ tests/datatypes/test_slice.py | 16 ----- tests/datatypes/test_str.py | 14 ----- tests/datatypes/test_tuple.py | 16 ----- 38 files changed, 499 deletions(-) diff --git a/tests/builtins/test_all.py b/tests/builtins/test_all.py index 5dda85897c..26fa8af8c2 100644 --- a/tests/builtins/test_all.py +++ b/tests/builtins/test_all.py @@ -10,7 +10,5 @@ class BuiltinAllFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_bytes', 'test_frozenset', - 'test_str', ] diff --git a/tests/builtins/test_any.py b/tests/builtins/test_any.py index 3bb3750f98..f78ddcb821 100644 --- a/tests/builtins/test_any.py +++ b/tests/builtins/test_any.py @@ -10,6 +10,5 @@ class BuiltinAnyFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_dict', 'test_str', ] diff --git a/tests/builtins/test_bin.py b/tests/builtins/test_bin.py index eaad9ee357..eea67f3997 100644 --- a/tests/builtins/test_bin.py +++ b/tests/builtins/test_bin.py @@ -22,6 +22,4 @@ class BuiltinBinFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["bin"] not_implemented = [ - 'test_class', - 'test_frozenset', ] diff --git a/tests/builtins/test_bool.py b/tests/builtins/test_bool.py index d0cdf258f3..b451540454 100644 --- a/tests/builtins/test_bool.py +++ b/tests/builtins/test_bool.py @@ -50,6 +50,5 @@ class BuiltinBoolFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["bool"] not_implemented = [ - 'test_class', 'test_complex', ] diff --git a/tests/builtins/test_delattr.py b/tests/builtins/test_delattr.py index c62db56ee1..d9ccadbc98 100644 --- a/tests/builtins/test_delattr.py +++ b/tests/builtins/test_delattr.py @@ -63,29 +63,16 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_bytes_frozenset', - 'test_class_bool', - 'test_class_complex', - 'test_class_dict', - 'test_class_list', - 'test_class_None', 'test_class_slice', 'test_class_str', - 'test_complex_class', 'test_complex_frozenset', - 'test_dict_frozenset', 'test_float_class', - 'test_frozenset_bytes', 'test_frozenset_complex', - 'test_frozenset_list', 'test_frozenset_None', - 'test_frozenset_NotImplemented', - 'test_frozenset_range', - 'test_frozenset_slice', - 'test_frozenset_str', 'test_list_frozenset', @@ -96,7 +83,6 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_range_class', - 'test_slice_class', 'test_str_class', diff --git a/tests/builtins/test_dict.py b/tests/builtins/test_dict.py index 27f4e26f55..e1800fd0a2 100644 --- a/tests/builtins/test_dict.py +++ b/tests/builtins/test_dict.py @@ -10,7 +10,6 @@ class BuiltinDictFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_bytes', 'test_frozenset', 'test_list', 'test_str', diff --git a/tests/builtins/test_divmod.py b/tests/builtins/test_divmod.py index 9487f1a8e2..88447c10bd 100644 --- a/tests/builtins/test_divmod.py +++ b/tests/builtins/test_divmod.py @@ -35,26 +35,18 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT not_implemented = [ 'test_bool_complex', - 'test_bytearray_class', 'test_bytearray_complex', 'test_bytearray_frozenset', 'test_bytes_class', 'test_bytes_complex', - 'test_bytes_frozenset', - 'test_class_bool', - 'test_class_bytes', 'test_class_complex', - 'test_class_float', - 'test_class_list', 'test_class_None', 'test_class_NotImplemented', 'test_class_range', 'test_complex_bytearray', - 'test_complex_bytes', - 'test_complex_float', 'test_complex_range', 'test_dict_class', @@ -62,17 +54,10 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_dict_frozenset', 'test_float_complex', - 'test_float_frozenset', - 'test_frozenset_class', 'test_frozenset_complex', - 'test_frozenset_NotImplemented', - 'test_frozenset_set', - 'test_frozenset_str', - 'test_frozenset_tuple', 'test_int_complex', - 'test_int_frozenset', 'test_list_complex', @@ -81,18 +66,15 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_NotImplemented_class', 'test_NotImplemented_complex', - 'test_NotImplemented_frozenset', 'test_range_complex', 'test_range_frozenset', - 'test_set_class', 'test_set_complex', 'test_slice_class', 'test_slice_complex', - 'test_str_class', 'test_str_complex', 'test_tuple_complex', diff --git a/tests/builtins/test_enumerate.py b/tests/builtins/test_enumerate.py index f801b5631f..6c892c3c80 100644 --- a/tests/builtins/test_enumerate.py +++ b/tests/builtins/test_enumerate.py @@ -53,11 +53,8 @@ class BuiltinEnumerateFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_bytearray', 'test_bytes', 'test_class', - 'test_complex', 'test_dict', - 'test_float', 'test_frozenset', - 'test_int', 'test_list', 'test_range', 'test_set', diff --git a/tests/builtins/test_filter.py b/tests/builtins/test_filter.py index 8165fd2ba7..69d22dd85e 100644 --- a/tests/builtins/test_filter.py +++ b/tests/builtins/test_filter.py @@ -54,16 +54,9 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_bytes_str', 'test_bytes_tuple', - 'test_class_bool', 'test_class_bytearray', - 'test_class_bytes', - 'test_class_class', - 'test_class_complex', - 'test_class_frozenset', 'test_class_int', 'test_class_list', - 'test_class_NotImplemented', - 'test_class_str', 'test_class_tuple', 'test_complex_bytearray', @@ -78,7 +71,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_dict_bytearray', 'test_dict_bytes', - 'test_dict_class', 'test_dict_dict', 'test_dict_frozenset', 'test_dict_list', @@ -89,7 +81,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_float_bytearray', 'test_float_bytes', - 'test_float_class', 'test_float_dict', 'test_float_frozenset', 'test_float_list', @@ -100,9 +91,7 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_frozenset_bytearray', 'test_frozenset_bytes', - 'test_frozenset_complex', 'test_frozenset_dict', - 'test_frozenset_float', 'test_frozenset_frozenset', 'test_frozenset_int', 'test_frozenset_list', @@ -133,11 +122,9 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_None_bytearray', 'test_None_class', - 'test_None_set', 'test_NotImplemented_bytearray', 'test_NotImplemented_bytes', - 'test_NotImplemented_class', 'test_NotImplemented_dict', 'test_NotImplemented_frozenset', 'test_NotImplemented_list', @@ -179,7 +166,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_str_bytearray', 'test_str_bytes', - 'test_str_class', 'test_str_dict', 'test_str_frozenset', 'test_str_list', diff --git a/tests/builtins/test_frozenset.py b/tests/builtins/test_frozenset.py index 7f36634feb..061cfa01ab 100644 --- a/tests/builtins/test_frozenset.py +++ b/tests/builtins/test_frozenset.py @@ -9,10 +9,8 @@ class BuiltinFrozensetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["frozenset"] not_implemented = [ - 'test_bool', 'test_bytearray', 'test_bytes', - 'test_complex', 'test_dict', 'test_frozenset', 'test_slice', diff --git a/tests/builtins/test_getattr.py b/tests/builtins/test_getattr.py index 8044a8477d..03c1408df5 100644 --- a/tests/builtins/test_getattr.py +++ b/tests/builtins/test_getattr.py @@ -45,10 +45,7 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa not_implemented = [ 'test_bool_class', - 'test_bytearray_class', - 'test_bytearray_frozenset', - 'test_bytes_class', 'test_class_complex', 'test_class_float', @@ -56,39 +53,27 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_class_range', 'test_class_str', - 'test_complex_class', 'test_dict_frozenset', 'test_float_frozenset', - 'test_frozenset_bool', 'test_frozenset_bytearray', 'test_frozenset_bytes', 'test_frozenset_float', 'test_frozenset_int', 'test_frozenset_list', - 'test_frozenset_None', 'test_frozenset_NotImplemented', - 'test_frozenset_slice', - 'test_frozenset_tuple', 'test_list_frozenset', 'test_None_frozenset', - 'test_NotImplemented_frozenset', - 'test_range_class', - 'test_range_frozenset', 'test_set_class', - 'test_slice_class', - 'test_str_class', - 'test_tuple_class', - 'test_tuple_frozenset', ] diff --git a/tests/builtins/test_hasattr.py b/tests/builtins/test_hasattr.py index 00513be638..40e482e4ee 100644 --- a/tests/builtins/test_hasattr.py +++ b/tests/builtins/test_hasattr.py @@ -41,7 +41,6 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_class_bytes', 'test_class_complex', - 'test_class_float', 'test_class_list', 'test_class_None', 'test_class_range', @@ -49,9 +48,7 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_class_str', 'test_class_tuple', - 'test_complex_class', - 'test_dict_class', 'test_float_frozenset', @@ -61,27 +58,20 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa 'test_frozenset_dict', 'test_frozenset_float', 'test_frozenset_frozenset', - 'test_frozenset_int', - 'test_frozenset_list', 'test_frozenset_None', 'test_frozenset_slice', - 'test_frozenset_str', 'test_frozenset_tuple', - 'test_list_class', 'test_list_frozenset', - 'test_None_frozenset', 'test_NotImplemented_class', - 'test_set_class', 'test_slice_frozenset', 'test_str_class', - 'test_str_frozenset', ] diff --git a/tests/builtins/test_list.py b/tests/builtins/test_list.py index f48abdb09d..18097d1ba8 100644 --- a/tests/builtins/test_list.py +++ b/tests/builtins/test_list.py @@ -22,6 +22,5 @@ class BuiltinListFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_bytearray', 'test_class', 'test_dict', - 'test_frozenset', 'test_str', ] diff --git a/tests/builtins/test_map.py b/tests/builtins/test_map.py index d2cc2dfc66..8db12218ab 100644 --- a/tests/builtins/test_map.py +++ b/tests/builtins/test_map.py @@ -40,56 +40,31 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_bytearray_dict', 'test_bytes_bytearray', - 'test_bytes_dict', - 'test_bytes_set', 'test_class_bytearray', - 'test_class_dict', - 'test_class_int', - 'test_class_range', - 'test_class_slice', - 'test_class_tuple', 'test_complex_bytearray', - 'test_complex_bytes', - 'test_complex_class', 'test_complex_dict', - 'test_complex_set', - 'test_complex_str', 'test_dict_bytearray', - 'test_dict_class', 'test_dict_str', 'test_float_bytearray', - 'test_float_bytes', - 'test_float_dict', 'test_float_frozenset', - 'test_float_str', - 'test_frozenset_bool', 'test_frozenset_bytearray', 'test_frozenset_int', - 'test_frozenset_list', - 'test_frozenset_None', 'test_frozenset_tuple', 'test_int_bytearray', - 'test_int_class', - 'test_int_str', 'test_list_bytearray', - 'test_list_class', - 'test_list_dict', 'test_list_frozenset', 'test_None_bytearray', 'test_None_frozenset', - 'test_None_set', - 'test_None_str', 'test_NotImplemented_bytearray', - 'test_NotImplemented_str', 'test_range_bytearray', 'test_range_dict', @@ -99,13 +74,11 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_set_set', 'test_slice_bytearray', - 'test_slice_dict', 'test_slice_str', 'test_str_bytearray', 'test_str_dict', 'test_str_set', - 'test_str_str', 'test_tuple_bytearray', 'test_tuple_bytes', diff --git a/tests/builtins/test_max.py b/tests/builtins/test_max.py index 9191cd130c..7a1e158375 100644 --- a/tests/builtins/test_max.py +++ b/tests/builtins/test_max.py @@ -75,7 +75,5 @@ class BuiltinMaxFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_bytes', 'test_frozenset', - 'test_tuple', ] diff --git a/tests/builtins/test_oct.py b/tests/builtins/test_oct.py index 084b9cf88b..8e2317be84 100644 --- a/tests/builtins/test_oct.py +++ b/tests/builtins/test_oct.py @@ -9,6 +9,4 @@ class BuiltinOctFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["oct"] not_implemented = [ - 'test_class', - 'test_frozenset', ] diff --git a/tests/builtins/test_ord.py b/tests/builtins/test_ord.py index 6d5a970c92..eda1862405 100644 --- a/tests/builtins/test_ord.py +++ b/tests/builtins/test_ord.py @@ -11,5 +11,4 @@ class BuiltinOrdFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytes', 'test_bytearray', - 'test_frozenset', ] diff --git a/tests/builtins/test_pow.py b/tests/builtins/test_pow.py index 5fbece1e7c..e2d0147cb0 100644 --- a/tests/builtins/test_pow.py +++ b/tests/builtins/test_pow.py @@ -111,26 +111,15 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest not_implemented = [ - 'test_bool_class', 'test_bool_complex', 'test_bool_frozenset', - 'test_bytes_class', 'test_bytes_frozenset', - 'test_class_bool', - 'test_class_bytearray', - 'test_class_float', - 'test_class_frozenset', - 'test_class_int', - 'test_class_set', - 'test_class_tuple', 'test_complex_bool', - 'test_complex_class', 'test_complex_complex', - 'test_complex_int', 'test_complex_set', 'test_complex_tuple', @@ -138,28 +127,18 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_float_complex', 'test_float_float', - 'test_frozenset_bytes', - 'test_frozenset_float', - 'test_frozenset_range', 'test_frozenset_int', - 'test_frozenset_None', - 'test_frozenset_str', 'test_frozenset_tuple', 'test_int_complex', 'test_int_float', - 'test_list_frozenset', - 'test_None_class', - 'test_None_frozenset', 'test_set_frozenset', - 'test_slice_class', - 'test_str_frozenset', ] diff --git a/tests/builtins/test_range.py b/tests/builtins/test_range.py index fb011b3886..afe0bb3036 100644 --- a/tests/builtins/test_range.py +++ b/tests/builtins/test_range.py @@ -10,6 +10,5 @@ class BuiltinRangeFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bool', - 'test_class', 'test_frozenset', ] diff --git a/tests/builtins/test_set.py b/tests/builtins/test_set.py index de3cdf308f..adfb03b931 100644 --- a/tests/builtins/test_set.py +++ b/tests/builtins/test_set.py @@ -11,7 +11,6 @@ class BuiltinSetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_class', 'test_dict', 'test_str', 'test_tuple', diff --git a/tests/builtins/test_sum.py b/tests/builtins/test_sum.py index 283e33363b..2a1dea4ec3 100644 --- a/tests/builtins/test_sum.py +++ b/tests/builtins/test_sum.py @@ -30,8 +30,5 @@ class BuiltinSumFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_bytes', 'test_dict', - 'test_frozenset', - 'test_str', ] diff --git a/tests/builtins/test_zip.py b/tests/builtins/test_zip.py index 01d212a7e0..a555c344dd 100644 --- a/tests/builtins/test_zip.py +++ b/tests/builtins/test_zip.py @@ -43,7 +43,6 @@ class BuiltinZipFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_list', 'test_range', 'test_set', - 'test_slice', 'test_str', 'test_tuple', ] diff --git a/tests/datatypes/test_NoneType.py b/tests/datatypes/test_NoneType.py index bb5fe6d4c1..47069db5f1 100644 --- a/tests/datatypes/test_NoneType.py +++ b/tests/datatypes/test_NoneType.py @@ -39,12 +39,9 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ne_NotImplemented', 'test_direct_ne_range', 'test_direct_ne_set', - 'test_direct_ne_slice', - 'test_direct_lt_bytes', 'test_direct_ge_frozenset', - 'test_direct_lt_frozenset', 'test_eq_class', @@ -53,7 +50,6 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_class', 'test_le_class', - 'test_le_frozenset', 'test_lshift_frozenset', @@ -74,16 +70,12 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_class', - 'test_rshift_frozenset', 'test_subscr_class', 'test_subtract_class', - 'test_true_divide_class', - 'test_xor_class', - 'test_xor_frozenset', ] @@ -93,9 +85,7 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) not_implemented = [ 'test_add_frozenset', - 'test_and_class', - 'test_floor_divide_class', 'test_lshift_frozenset', @@ -110,10 +100,7 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) 'test_rshift_class', - 'test_rshift_frozenset', - 'test_subtract_class', - 'test_true_divide_class', ] diff --git a/tests/datatypes/test_NotImplemented.py b/tests/datatypes/test_NotImplemented.py index 9b22824fcd..2ebd333183 100644 --- a/tests/datatypes/test_NotImplemented.py +++ b/tests/datatypes/test_NotImplemented.py @@ -18,26 +18,18 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC not_implemented = [ 'test_add_class', - 'test_add_frozenset', - 'test_direct_eq_bytes', - 'test_direct_ne_bytes', 'test_direct_eq_frozenset', - 'test_direct_ge_frozenset', - 'test_direct_lt_frozenset', - 'test_direct_ne_frozenset', 'test_eq_class', 'test_ge_class', - 'test_ge_frozenset', 'test_gt_class', 'test_le_class', - 'test_le_frozenset', 'test_lshift_class', 'test_lshift_frozenset', @@ -51,7 +43,6 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_multiply_frozenset', 'test_ne_class', - 'test_ne_frozenset', 'test_or_class', 'test_or_frozenset', @@ -61,7 +52,6 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_subtract_frozenset', - 'test_true_divide_class', ] @@ -70,16 +60,13 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes data_type = 'NotImplemented' not_implemented = [ - 'test_add_frozenset', - 'test_and_class', 'test_eq_bytearray', 'test_eq_class', 'test_eq_complex', 'test_eq_frozenset', - 'test_floor_divide_frozenset', 'test_ge_bytearray', 'test_ge_class', @@ -96,7 +83,6 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_le_complex', 'test_le_frozenset', - 'test_lshift_class', 'test_lt_bytearray', 'test_lt_class', @@ -108,7 +94,6 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_multiply_bytes', 'test_multiply_bytearray', 'test_multiply_class', - 'test_multiply_frozenset', 'test_multiply_list', 'test_multiply_str', 'test_multiply_tuple', @@ -120,9 +105,7 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_power_class', - 'test_power_frozenset', - 'test_rshift_class', 'test_subscr_bytearray', 'test_subscr_bytes', @@ -134,5 +117,4 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_subtract_frozenset', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_bool.py b/tests/datatypes/test_bool.py index 9419726559..cad6c81ed3 100644 --- a/tests/datatypes/test_bool.py +++ b/tests/datatypes/test_bool.py @@ -33,17 +33,13 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'bool' not_implemented = [ - 'test_add_class', 'test_add_complex', - 'test_add_frozenset', 'test_and_class', - 'test_direct_gt_bytes', 'test_direct_lt_bytes', 'test_direct_ne_bytes', - 'test_direct_le_frozenset', 'test_eq_class', 'test_eq_frozenset', @@ -57,8 +53,6 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', 'test_le_frozenset', - 'test_lshift_class', - 'test_lshift_frozenset', 'test_lt_class', @@ -69,13 +63,10 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_frozenset', 'test_ne_class', - 'test_ne_frozenset', - 'test_power_class', 'test_power_complex', - 'test_rshift_class', 'test_subscr_bool', 'test_subscr_bytearray', @@ -97,7 +88,6 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subtract_class', 'test_subtract_complex', - 'test_subtract_frozenset', 'test_true_divide_bytearray', 'test_true_divide_bytes', @@ -114,8 +104,6 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_true_divide_str', 'test_true_divide_tuple', - 'test_xor_class', - 'test_xor_frozenset', 'test_xor_int', ] @@ -130,7 +118,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_and_int', 'test_floor_divide_bool', - 'test_floor_divide_complex', 'test_floor_divide_float', 'test_floor_divide_frozenset', 'test_floor_divide_int', @@ -147,13 +134,11 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_class', 'test_multiply_complex', 'test_multiply_float', - 'test_multiply_frozenset', 'test_multiply_int', 'test_multiply_list', 'test_multiply_str', 'test_multiply_tuple', - 'test_or_frozenset', 'test_or_int', 'test_power_bool', @@ -165,7 +150,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_subtract_bool', 'test_subtract_complex', 'test_subtract_float', - 'test_subtract_frozenset', 'test_subtract_int', 'test_true_divide_bool', @@ -173,6 +157,5 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_true_divide_float', 'test_true_divide_int', - 'test_xor_class', 'test_xor_int', ] diff --git a/tests/datatypes/test_bytearray.py b/tests/datatypes/test_bytearray.py index be205a921f..7c5e24a1db 100644 --- a/tests/datatypes/test_bytearray.py +++ b/tests/datatypes/test_bytearray.py @@ -32,9 +32,7 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'bytearray' not_implemented = [ - 'test_add_class', - 'test_and_class', 'test_direct_eq_frozenset', 'test_direct_ne_frozenset', @@ -42,25 +40,20 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_eq_class', 'test_ge_class', - 'test_ge_frozenset', 'test_gt_class', - 'test_gt_frozenset', 'test_le_class', 'test_le_frozenset', - 'test_lshift_class', 'test_lt_class', 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_ne_class', - 'test_ne_frozenset', 'test_or_frozenset', @@ -69,7 +62,6 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): - 'test_subtract_frozenset', 'test_true_divide_frozenset', @@ -87,14 +79,10 @@ class InplaceBytearrayOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_and_frozenset', 'test_floor_divide_class', - 'test_floor_divide_complex', - 'test_lshift_class', - 'test_modulo_class', 'test_modulo_complex', - 'test_multiply_class', 'test_power_class', @@ -102,7 +90,6 @@ class InplaceBytearrayOperationTests(InplaceOperationTestCase, TranspileTestCase 'test_subtract_class', - 'test_true_divide_class', 'test_true_divide_frozenset', ] diff --git a/tests/datatypes/test_bytes.py b/tests/datatypes/test_bytes.py index dcbcb30e0c..d854a761f6 100644 --- a/tests/datatypes/test_bytes.py +++ b/tests/datatypes/test_bytes.py @@ -62,8 +62,6 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_eq_bytearray', 'test_direct_eq_bytes', - 'test_direct_eq_dict', - 'test_direct_eq_frozenset', 'test_direct_eq_int', 'test_direct_eq_none', 'test_direct_eq_set', @@ -71,10 +69,8 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ge_bytearray', 'test_direct_ge_frozenset', 'test_direct_ge_none', - 'test_direct_ge_tuple', 'test_direct_gt_bytearray', - 'test_direct_gt_frozenset', 'test_direct_gt_int', 'test_direct_gt_none', 'test_direct_gt_set', @@ -83,34 +79,21 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_le_bytearray', 'test_direct_le_class', 'test_direct_le_complex', - 'test_direct_le_frozenset', - 'test_direct_le_int', - 'test_direct_le_list', 'test_direct_le_none', - 'test_direct_le_set', 'test_direct_lt_bytearray', - 'test_direct_lt_class', 'test_direct_lt_complex', - 'test_direct_lt_int', - 'test_direct_lt_list', 'test_direct_lt_none', - 'test_direct_ne_bool', 'test_direct_ne_bytearray', 'test_direct_ne_bytes', 'test_direct_ne_complex', 'test_direct_ne_frozenset', 'test_direct_ne_list', 'test_direct_ne_none', - 'test_direct_ne_set', - 'test_direct_ne_str', 'test_direct_ne_tuple', - 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', - 'test_direct_gt_frozenset', - 'test_direct_le_frozenset', 'test_direct_ne_frozenset', 'test_eq_bytearray', @@ -128,28 +111,18 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lshift_class', - 'test_modulo_None', - 'test_modulo_bytes', 'test_modulo_complex', 'test_modulo_dict', 'test_modulo_int', - 'test_modulo_list', - 'test_modulo_set', - 'test_modulo_str', - 'test_modulo_tuple', - 'test_multiply_class', 'test_or_class', - 'test_power_frozenset', 'test_rshift_frozenset', - 'test_subtract_frozenset', - 'test_true_divide_frozenset', ] @@ -167,25 +140,16 @@ class InplaceBytesOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_lshift_class', 'test_modulo_None', - 'test_modulo_bool', - 'test_modulo_bytearray', - 'test_modulo_bytes', 'test_modulo_complex', 'test_modulo_dict', - 'test_modulo_frozenset', 'test_modulo_list', 'test_modulo_range', - 'test_modulo_set', - 'test_modulo_tuple', - 'test_or_class', - 'test_rshift_class', 'test_rshift_frozenset', - 'test_subtract_class', ] diff --git a/tests/datatypes/test_complex.py b/tests/datatypes/test_complex.py index 66aaf69835..8b16163c34 100644 --- a/tests/datatypes/test_complex.py +++ b/tests/datatypes/test_complex.py @@ -68,15 +68,11 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_gt_frozenset', - 'test_direct_le_frozenset', - 'test_direct_eq_int', - 'test_direct_ne_bool', 'test_direct_ne_int', 'test_eq_class', - 'test_eq_frozenset', 'test_ge_class', @@ -84,9 +80,7 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_class', 'test_le_class', - 'test_le_frozenset', - 'test_lshift_frozenset', 'test_lt_class', @@ -98,13 +92,9 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_or_class', - 'test_power_frozenset', - 'test_rshift_class', - 'test_subscr_class', - 'test_subtract_frozenset', 'test_true_divide_class', @@ -123,7 +113,6 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_and_bool', 'test_and_bytes', - 'test_and_int', 'test_and_none', 'test_and_str', @@ -221,16 +210,13 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_le_str', 'test_le_tuple', - 'test_lshift_None', 'test_lshift_NotImplemented', 'test_lshift_slice', 'test_lshift_bytes', 'test_lshift_class', 'test_lshift_float', 'test_lshift_int', - 'test_lshift_list', 'test_lshift_none', - 'test_lshift_str', 'test_lt_None', 'test_lt_NotImplemented', @@ -302,8 +288,6 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_ne_tuple', - 'test_power_slice', - 'test_power_range', 'test_power_bool', 'test_power_bytes', 'test_power_complex', @@ -313,15 +297,10 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_int', 'test_power_list', 'test_power_none', - 'test_power_set', - 'test_rshift_None', - 'test_rshift_slice', - 'test_rshift_bytearray', 'test_rshift_int', 'test_rshift_list', 'test_rshift_none', - 'test_rshift_set', 'test_subscr_None', 'test_subscr_NotImplemented', @@ -350,11 +329,8 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_subtract_int', 'test_true_divide_bool', - 'test_true_divide_class', 'test_true_divide_complex', - 'test_true_divide_dict', 'test_true_divide_float', - 'test_true_divide_frozenset', 'test_true_divide_int', 'test_true_divide_none', 'test_true_divide_set', diff --git a/tests/datatypes/test_dict.py b/tests/datatypes/test_dict.py index 4cfd844097..539d2bc187 100644 --- a/tests/datatypes/test_dict.py +++ b/tests/datatypes/test_dict.py @@ -307,17 +307,14 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_frozenset', - 'test_and_class', 'test_and_frozenset', - 'test_direct_eq_frozenset', 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_ne_frozenset', 'test_eq_class', - 'test_eq_frozenset', 'test_ge_class', @@ -334,10 +331,8 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_bytearray', 'test_ne_class', - 'test_ne_frozenset', - 'test_power_frozenset', 'test_rshift_frozenset', @@ -347,9 +342,7 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_slice', - 'test_true_divide_frozenset', - 'test_xor_class', ] @@ -359,9 +352,7 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_floor_divide_complex', - 'test_lshift_class', 'test_lshift_frozenset', 'test_modulo_complex', @@ -372,11 +363,9 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_frozenset', - 'test_rshift_frozenset', 'test_subtract_class', 'test_true_divide_class', - 'test_true_divide_frozenset', ] diff --git a/tests/datatypes/test_float.py b/tests/datatypes/test_float.py index 26f367b143..dd02de6b07 100644 --- a/tests/datatypes/test_float.py +++ b/tests/datatypes/test_float.py @@ -100,7 +100,6 @@ class UnaryFloatOperationTests(UnaryOperationTestCase, TranspileTestCase): data_type = 'float' not_implemented = [ - 'test_unary_invert', ] @@ -110,16 +109,12 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_frozenset', - 'test_and_frozenset', 'test_direct_eq_bytes', 'test_direct_gt_bytes', - 'test_direct_lt_bytes', 'test_direct_ne_bytes', 'test_direct_ge_frozenset', - 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', 'test_eq_class', @@ -128,9 +123,7 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_class', 'test_le_class', - 'test_le_frozenset', - 'test_lshift_frozenset', 'test_lt_class', 'test_lt_frozenset', @@ -148,12 +141,9 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_class', - 'test_or_frozenset', - 'test_power_class', 'test_power_complex', 'test_power_float', - 'test_power_frozenset', 'test_subscr_bool', @@ -189,11 +179,8 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_class', 'test_add_complex', - 'test_add_frozenset', - 'test_and_frozenset', - 'test_floor_divide_class', 'test_modulo_complex', @@ -217,10 +204,8 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_rshift_frozenset', - 'test_subtract_class', 'test_subtract_complex', 'test_true_divide_complex', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_frozenset.py b/tests/datatypes/test_frozenset.py index 18b6b8150b..8b3e2af08c 100644 --- a/tests/datatypes/test_frozenset.py +++ b/tests/datatypes/test_frozenset.py @@ -338,53 +338,35 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_eq_slice', 'test_direct_ne_bool', - 'test_direct_ne_bytes', 'test_direct_ne_dict', 'test_direct_ne_float', 'test_direct_ne_frozenset', 'test_direct_ne_set', 'test_direct_ne_tuple', - 'test_direct_le_complex', - 'test_direct_le_dict', - 'test_direct_le_float', 'test_direct_le_int', 'test_direct_le_NotImplemented', 'test_direct_le_range', 'test_direct_le_slice', 'test_direct_le_tuple', - 'test_direct_lt_bytearray', - 'test_direct_lt_bytes', - 'test_direct_lt_class', 'test_direct_lt_complex', 'test_direct_lt_float', 'test_direct_lt_int', 'test_direct_lt_list', - 'test_direct_lt_range', 'test_direct_lt_slice', 'test_direct_lt_str', - 'test_direct_ge_bool', - 'test_direct_ge_bytearray', - 'test_direct_ge_class', - 'test_direct_ge_complex', - 'test_direct_ge_float', 'test_direct_ge_frozenset', 'test_direct_ge_tuple', - 'test_direct_gt_dict', - 'test_direct_gt_float', 'test_direct_gt_NotImplemented', 'test_direct_gt_range', - 'test_direct_gt_str', 'test_direct_gt_tuple', 'test_eq_class', - 'test_floor_divide_bytearray', 'test_floor_divide_bytes', - 'test_floor_divide_int', 'test_floor_divide_list', 'test_floor_divide_range', 'test_floor_divide_str', @@ -395,23 +377,14 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', - 'test_lshift_bytearray', - 'test_lshift_dict', - 'test_lshift_float', 'test_lshift_frozenset', - 'test_lshift_int', 'test_lshift_list', - 'test_lshift_None', - 'test_lshift_set', - 'test_lshift_slice', 'test_lshift_tuple', 'test_lt_class', 'test_modulo_complex', - 'test_modulo_float', 'test_modulo_int', - 'test_modulo_None', 'test_modulo_NotImplemented', 'test_modulo_range', 'test_modulo_set', @@ -421,11 +394,9 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_class', 'test_ne_complex', 'test_ne_frozenset', - 'test_ne_NotImplemented', 'test_ne_set', - 'test_power_class', 'test_power_dict', 'test_power_float', 'test_power_frozenset', @@ -433,10 +404,7 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_None', 'test_power_NotImplemented', 'test_power_set', - 'test_power_slice', - 'test_rshift_bytearray', - 'test_rshift_bytes', 'test_rshift_dict', 'test_rshift_slice', @@ -460,10 +428,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subtract_class', - 'test_true_divide_bytearray', - 'test_true_divide_class', - 'test_true_divide_complex', - 'test_true_divide_dict', 'test_true_divide_float', 'test_true_divide_list', 'test_true_divide_NotImplemented', @@ -479,104 +443,53 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase not_implemented = [ 'test_add_bytes', - 'test_add_class', - 'test_add_float', 'test_add_int', 'test_add_list', - 'test_add_None', 'test_add_slice', - 'test_and_bool', - 'test_and_bytearray', - 'test_and_class', - 'test_and_dict', 'test_and_None', 'test_and_range', - 'test_and_set', 'test_and_slice', 'test_and_tuple', - 'test_floor_divide_float', - 'test_floor_divide_int', 'test_floor_divide_list', - 'test_floor_divide_set', 'test_floor_divide_slice', 'test_lshift_bytes', 'test_lshift_int', - 'test_lshift_set', - 'test_lshift_str', 'test_modulo_bytearray', - 'test_modulo_bytes', 'test_modulo_complex', 'test_modulo_frozenset', - 'test_modulo_set', - 'test_modulo_tuple', 'test_multiply_bool', 'test_multiply_bytearray', - 'test_multiply_class', - 'test_multiply_complex', - 'test_multiply_int', 'test_multiply_None', - 'test_multiply_slice', 'test_multiply_tuple', - 'test_or_bool', 'test_or_bytes', 'test_or_frozenset', - 'test_or_list', - 'test_or_range', - 'test_or_set', - 'test_or_slice', - 'test_power_bool', 'test_power_bytearray', 'test_power_dict', - 'test_power_float', 'test_power_list', - 'test_power_range', - 'test_power_set', - 'test_power_slice', - 'test_power_str', - 'test_rshift_bool', - 'test_rshift_bytearray', 'test_rshift_complex', 'test_rshift_float', - 'test_rshift_frozenset', - 'test_rshift_None', 'test_rshift_NotImplemented', - 'test_rshift_set', 'test_subtract_bool', - 'test_subtract_bytearray', - 'test_subtract_bytes', - 'test_subtract_frozenset', - 'test_subtract_int', - 'test_subtract_list', 'test_subtract_range', - 'test_subtract_set', 'test_subtract_str', - 'test_subtract_tuple', 'test_true_divide_bytearray', 'test_true_divide_bytes', - 'test_true_divide_complex', 'test_true_divide_int', - 'test_true_divide_None', - 'test_true_divide_NotImplemented', - 'test_true_divide_range', - 'test_true_divide_tuple', 'test_xor_class', 'test_xor_dict', 'test_xor_frozenset', - 'test_xor_int', 'test_xor_list', 'test_xor_NotImplemented', - 'test_xor_set', 'test_xor_slice', - 'test_xor_str', ] diff --git a/tests/datatypes/test_int.py b/tests/datatypes/test_int.py index 8db7e0dbc2..442e9b72e3 100644 --- a/tests/datatypes/test_int.py +++ b/tests/datatypes/test_int.py @@ -38,14 +38,9 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_and_frozenset', - 'test_direct_eq_bytes', 'test_direct_gt_bytes', - 'test_direct_le_bytes', - 'test_direct_ne_bytes', - 'test_direct_eq_frozenset', 'test_eq_class', @@ -56,18 +51,14 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', 'test_lshift_class', - 'test_lshift_frozenset', 'test_lt_class', - 'test_modulo_class', 'test_modulo_complex', 'test_multiply_complex', - 'test_multiply_frozenset', 'test_ne_class', - 'test_ne_frozenset', 'test_power_complex', @@ -75,7 +66,6 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_float', 'test_rshift_class', - 'test_rshift_frozenset', 'test_subscr_frozenset', @@ -95,12 +85,10 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_and_class', 'test_floor_divide_class', - 'test_floor_divide_complex', 'test_floor_divide_float', 'test_lshift_class', - 'test_modulo_class', 'test_modulo_complex', 'test_modulo_float', @@ -112,22 +100,17 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_str', 'test_multiply_tuple', - 'test_or_class', 'test_or_frozenset', 'test_power_complex', 'test_power_float', - 'test_power_frozenset', 'test_power_int', 'test_subtract_complex', - 'test_subtract_frozenset', 'test_subtract_float', - 'test_true_divide_class', 'test_true_divide_complex', - 'test_xor_class', 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_list.py b/tests/datatypes/test_list.py index fea66d16f5..125164e4ec 100644 --- a/tests/datatypes/test_list.py +++ b/tests/datatypes/test_list.py @@ -599,18 +599,11 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'list' not_implemented = [ - 'test_add_class', - 'test_add_frozenset', - 'test_direct_le_bytes', - 'test_direct_ne_bytes', - 'test_direct_le_list', 'test_direct_eq_frozenset', - 'test_direct_ge_frozenset', - 'test_direct_gt_frozenset', 'test_eq_class', @@ -619,12 +612,10 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_class', 'test_le_class', - 'test_le_list', 'test_lt_class', 'test_lt_frozenset', - 'test_lt_list', 'test_modulo_class', 'test_modulo_complex', @@ -635,17 +626,13 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_frozenset', - 'test_power_class', 'test_rshift_frozenset', 'test_subscr_bool', - 'test_subscr_frozenset', 'test_subscr_slice', - 'test_subtract_class', - 'test_true_divide_frozenset', 'test_xor_frozenset', ] @@ -664,24 +651,19 @@ class InplaceListOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_str', - 'test_floor_divide_class', 'test_floor_divide_complex', 'test_floor_divide_frozenset', 'test_lshift_class', - 'test_lshift_frozenset', 'test_modulo_complex', 'test_modulo_frozenset', - 'test_power_class', 'test_rshift_class', - 'test_rshift_frozenset', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_range.py b/tests/datatypes/test_range.py index 9082be3f9e..ce934122f4 100644 --- a/tests/datatypes/test_range.py +++ b/tests/datatypes/test_range.py @@ -89,14 +89,10 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'range' not_implemented = [ - 'test_add_class', 'test_add_frozenset', - 'test_and_class', 'test_direct_eq_frozenset', - 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', 'test_direct_eq_range', 'test_direct_ne_range', @@ -104,31 +100,23 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_eq_class', 'test_eq_range', - 'test_ge_bytearray', 'test_ge_class', - 'test_ge_range', 'test_ge_tuple', 'test_gt_bool', 'test_gt_class', 'test_gt_float', 'test_gt_frozenset', - 'test_gt_set', 'test_gt_tuple', 'test_le_bool', 'test_le_class', - 'test_le_range', 'test_lshift_class', 'test_lt_bool', 'test_lt_class', 'test_lt_dict', - 'test_lt_frozenset', - 'test_lt_list', - 'test_lt_range', - 'test_lt_set', 'test_lt_tuple', 'test_modulo_complex', @@ -136,13 +124,11 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_bytearray', 'test_multiply_bytes', - 'test_multiply_frozenset', 'test_multiply_list', 'test_multiply_str', 'test_multiply_tuple', 'test_ne_class', - 'test_ne_frozenset', 'test_ne_range', 'test_or_class', @@ -177,29 +163,21 @@ class InplaceRangeOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'range' not_implemented = [ - 'test_add_class', 'test_and_class', - 'test_floor_divide_class', - 'test_floor_divide_complex', 'test_lshift_class', 'test_lshift_frozenset', - 'test_modulo_class', 'test_modulo_complex', 'test_multiply_frozenset', - 'test_or_frozenset', - 'test_subtract_class', - 'test_true_divide_class', - 'test_true_divide_frozenset', 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_set.py b/tests/datatypes/test_set.py index 475d8d4d93..da72529640 100644 --- a/tests/datatypes/test_set.py +++ b/tests/datatypes/test_set.py @@ -359,22 +359,14 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'set' not_implemented = [ - 'test_add_class', 'test_add_frozenset', 'test_and_class', 'test_direct_eq_bytes', - 'test_direct_ge_bytearray', - 'test_direct_ge_bytes', 'test_direct_gt_bytearray', 'test_direct_gt_bytes', - 'test_direct_gt_set', - 'test_direct_le_bytes', - 'test_direct_lt_bytearray', - 'test_direct_lt_set', - 'test_direct_ne_frozenset', 'test_direct_le_slice', @@ -393,7 +385,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lt_class', - 'test_modulo_class', 'test_modulo_complex', 'test_multiply_bytearray', @@ -402,17 +393,12 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_class', - 'test_power_frozenset', - 'test_rshift_class', - 'test_subscr_class', - 'test_subscr_frozenset', 'test_true_divide_class', - 'test_xor_class', 'test_xor_frozenset', 'test_xor_set', ] @@ -422,10 +408,7 @@ class InplaceSetOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'set' not_implemented = [ - 'test_add_frozenset', - 'test_and_class', - 'test_and_set', 'test_modulo_complex', @@ -434,11 +417,9 @@ class InplaceSetOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_or_class', 'test_or_frozenset', - 'test_power_class', - 'test_true_divide_class', 'test_true_divide_frozenset', 'test_xor_class', diff --git a/tests/datatypes/test_slice.py b/tests/datatypes/test_slice.py index 146dd83b24..1777d2f659 100644 --- a/tests/datatypes/test_slice.py +++ b/tests/datatypes/test_slice.py @@ -78,8 +78,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', - 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', 'test_direct_eq_slice', 'test_direct_ge_slice', @@ -93,11 +91,9 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_eq_slice', 'test_ge_bytearray', - 'test_ge_bytes', 'test_ge_class', 'test_ge_complex', 'test_ge_dict', - 'test_ge_NotImplemented', 'test_ge_slice', 'test_gt_bytearray', @@ -105,23 +101,16 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_dict', 'test_gt_float', 'test_gt_frozenset', - 'test_gt_set', 'test_gt_slice', 'test_le_class', - 'test_le_complex', - 'test_le_frozenset', - 'test_le_list', 'test_le_NotImplemented', - 'test_le_set', 'test_le_slice', 'test_lshift_class', 'test_lt_class', - 'test_lt_float', 'test_lt_int', - 'test_lt_None', 'test_lt_slice', 'test_modulo_class', @@ -135,10 +124,8 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_tuple', 'test_ne_class', - 'test_ne_frozenset', 'test_ne_slice', - 'test_or_class', @@ -170,7 +157,6 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_and_class', 'test_modulo_complex', @@ -189,8 +175,6 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_true_divide_class', - 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_str.py b/tests/datatypes/test_str.py index 566af23014..631cc2ecfa 100644 --- a/tests/datatypes/test_str.py +++ b/tests/datatypes/test_str.py @@ -697,26 +697,21 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'str' not_implemented = [ - 'test_add_frozenset', 'test_and_class', 'test_direct_gt_bytes', - 'test_direct_ne_bytes', - 'test_direct_eq_frozenset', 'test_direct_gt_frozenset', 'test_eq_class', 'test_ge_class', - 'test_ge_frozenset', 'test_gt_class', 'test_gt_frozenset', 'test_le_class', - 'test_le_frozenset', 'test_lshift_frozenset', @@ -745,15 +740,12 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_frozenset', - 'test_power_frozenset', 'test_subscr_bool', - 'test_subscr_class', 'test_subscr_frozenset', 'test_subscr_slice', - 'test_subtract_frozenset', 'test_true_divide_class', 'test_true_divide_frozenset', @@ -766,7 +758,6 @@ class InplaceStrOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'str' not_implemented = [ - 'test_add_class', 'test_add_frozenset', 'test_and_frozenset', @@ -791,16 +782,11 @@ class InplaceStrOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_str', 'test_modulo_tuple', - 'test_multiply_class', - 'test_or_class', 'test_power_class', - 'test_true_divide_frozenset', - 'test_xor_class', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_tuple.py b/tests/datatypes/test_tuple.py index ee7701e135..1225e4bbeb 100644 --- a/tests/datatypes/test_tuple.py +++ b/tests/datatypes/test_tuple.py @@ -270,20 +270,15 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'tuple' not_implemented = [ - 'test_add_class', - 'test_and_class', 'test_direct_ge_bytes', 'test_direct_gt_bytes', - 'test_direct_le_bytes', 'test_direct_lt_bytes', 'test_direct_ne_bytes', - 'test_direct_ge_frozenset', 'test_direct_gt_frozenset', 'test_direct_le_frozenset', - 'test_direct_lt_frozenset', 'test_direct_ge_tuple', 'test_direct_gt_tuple', @@ -296,7 +291,6 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_frozenset', 'test_le_class', - 'test_le_frozenset', 'test_lt_class', @@ -307,22 +301,17 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_class', - 'test_ne_frozenset', - 'test_or_class', 'test_or_frozenset', - 'test_power_frozenset', 'test_subscr_bool', 'test_subscr_class', 'test_subscr_slice', - 'test_subtract_frozenset', 'test_true_divide_class', - 'test_true_divide_frozenset', 'test_xor_class', ] @@ -333,11 +322,9 @@ class InplaceTupleOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_and_frozenset', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytearray', 'test_multiply_bytes', @@ -356,13 +343,10 @@ class InplaceTupleOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_tuple', 'test_or_class', - 'test_or_frozenset', - 'test_power_class', 'test_rshift_frozenset', - 'test_subtract_class', 'test_true_divide_class', From cfba1a9d8448322fdec14ddef4ab1d446c87db68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 12:28:59 -0700 Subject: [PATCH 07/25] =?UTF-8?q?Remove=20=E2=80=9CUnexpected=20Success?= =?UTF-8?q?=E2=80=9D=20tests=20from=20various=20not=5Fimplemented?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatically generated from one-off script that parses this CI output log: https://s3.amazonaws.com/archive.travis-ci.org/jobs/234934329/log.txt?X-Amz-Expires=30&X-Amz-Date=20170522T192653Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJRYRXRSVGNKPKO5A/20170522/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=5aa968d1a8be1352ac2718397f277815d19e46a91133cf8bd1737e355a616bc9 --- tests/builtins/test_all.py | 1 - tests/builtins/test_any.py | 1 - tests/builtins/test_callable.py | 1 - tests/builtins/test_complex.py | 1 - tests/builtins/test_delattr.py | 11 --- tests/builtins/test_divmod.py | 13 --- tests/builtins/test_enumerate.py | 2 - tests/builtins/test_filter.py | 8 -- tests/builtins/test_format.py | 1 - tests/builtins/test_frozenset.py | 3 - tests/builtins/test_getattr.py | 16 ---- tests/builtins/test_hasattr.py | 24 ----- tests/builtins/test_issubclass.py | 5 - tests/builtins/test_iter.py | 1 - tests/builtins/test_list.py | 2 - tests/builtins/test_map.py | 18 ---- tests/builtins/test_min.py | 1 - tests/builtins/test_pow.py | 8 -- tests/builtins/test_range.py | 1 - tests/builtins/test_str.py | 1 - tests/builtins/test_sum.py | 1 - tests/builtins/test_zip.py | 1 - tests/datatypes/test_NoneType.py | 21 ----- tests/datatypes/test_NotImplemented.py | 12 --- tests/datatypes/test_bool.py | 12 --- tests/datatypes/test_bytearray.py | 16 ---- tests/datatypes/test_bytes.py | 34 ------- tests/datatypes/test_complex.py | 28 ------ tests/datatypes/test_dict.py | 13 --- tests/datatypes/test_float.py | 13 --- tests/datatypes/test_frozenset.py | 122 +++---------------------- tests/datatypes/test_int.py | 11 --- tests/datatypes/test_list.py | 12 --- tests/datatypes/test_range.py | 21 ----- tests/datatypes/test_set.py | 13 --- tests/datatypes/test_slice.py | 20 ---- tests/datatypes/test_str.py | 14 --- tests/datatypes/test_tuple.py | 19 ---- 38 files changed, 13 insertions(+), 489 deletions(-) diff --git a/tests/builtins/test_all.py b/tests/builtins/test_all.py index 26fa8af8c2..e0be9c41c0 100644 --- a/tests/builtins/test_all.py +++ b/tests/builtins/test_all.py @@ -10,5 +10,4 @@ class BuiltinAllFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_frozenset', ] diff --git a/tests/builtins/test_any.py b/tests/builtins/test_any.py index f78ddcb821..527e7fc88b 100644 --- a/tests/builtins/test_any.py +++ b/tests/builtins/test_any.py @@ -10,5 +10,4 @@ class BuiltinAnyFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_str', ] diff --git a/tests/builtins/test_callable.py b/tests/builtins/test_callable.py index fa99cb0cdf..4c67f73429 100644 --- a/tests/builtins/test_callable.py +++ b/tests/builtins/test_callable.py @@ -9,5 +9,4 @@ class BuiltinCallableFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["callable"] not_implemented = [ - 'test_class', ] diff --git a/tests/builtins/test_complex.py b/tests/builtins/test_complex.py index b3d2eefa9d..7c7271e68e 100644 --- a/tests/builtins/test_complex.py +++ b/tests/builtins/test_complex.py @@ -9,6 +9,5 @@ class BuiltinComplexFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["complex"] not_implemented = [ - 'test_class', 'test_complex', ] diff --git a/tests/builtins/test_delattr.py b/tests/builtins/test_delattr.py index d9ccadbc98..7ccffa5c06 100644 --- a/tests/builtins/test_delattr.py +++ b/tests/builtins/test_delattr.py @@ -58,32 +58,21 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa functions = ["delattr"] not_implemented = [ - 'test_bool_frozenset', - 'test_bytes_frozenset', - 'test_class_slice', 'test_class_str', - 'test_complex_frozenset', - 'test_float_class', - 'test_frozenset_complex', - 'test_frozenset_None', - 'test_list_frozenset', - 'test_NotImplemented_frozenset', - 'test_range_class', - 'test_str_class', ] diff --git a/tests/builtins/test_divmod.py b/tests/builtins/test_divmod.py index 88447c10bd..b93a4854f6 100644 --- a/tests/builtins/test_divmod.py +++ b/tests/builtins/test_divmod.py @@ -36,22 +36,13 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_bool_complex', 'test_bytearray_complex', - 'test_bytearray_frozenset', - 'test_bytes_class', 'test_bytes_complex', 'test_class_complex', - 'test_class_None', - 'test_class_NotImplemented', - 'test_class_range', - 'test_complex_bytearray', - 'test_complex_range', - 'test_dict_class', 'test_dict_complex', - 'test_dict_frozenset', 'test_float_complex', @@ -61,18 +52,14 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT 'test_list_complex', - 'test_None_class', 'test_None_complex', - 'test_NotImplemented_class', 'test_NotImplemented_complex', 'test_range_complex', - 'test_range_frozenset', 'test_set_complex', - 'test_slice_class', 'test_slice_complex', 'test_str_complex', diff --git a/tests/builtins/test_enumerate.py b/tests/builtins/test_enumerate.py index 6c892c3c80..f23dbfa14b 100644 --- a/tests/builtins/test_enumerate.py +++ b/tests/builtins/test_enumerate.py @@ -52,13 +52,11 @@ class BuiltinEnumerateFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_class', 'test_dict', 'test_frozenset', 'test_list', 'test_range', 'test_set', - 'test_slice', 'test_str', 'test_tuple', ] diff --git a/tests/builtins/test_filter.py b/tests/builtins/test_filter.py index 69d22dd85e..87566f56cc 100644 --- a/tests/builtins/test_filter.py +++ b/tests/builtins/test_filter.py @@ -25,7 +25,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas not_implemented = [ 'test_bool_bytearray', 'test_bool_bytes', - 'test_bool_class', 'test_bool_dict', 'test_bool_frozenset', 'test_bool_list', @@ -55,9 +54,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_bytes_tuple', 'test_class_bytearray', - 'test_class_int', - 'test_class_list', - 'test_class_tuple', 'test_complex_bytearray', 'test_complex_bytes', @@ -93,7 +89,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_frozenset_bytes', 'test_frozenset_dict', 'test_frozenset_frozenset', - 'test_frozenset_int', 'test_frozenset_list', 'test_frozenset_range', 'test_frozenset_set', @@ -121,7 +116,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_list_tuple', 'test_None_bytearray', - 'test_None_class', 'test_NotImplemented_bytearray', 'test_NotImplemented_bytes', @@ -145,7 +139,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_set_bytearray', 'test_set_bytes', - 'test_set_class', 'test_set_dict', 'test_set_frozenset', 'test_set_list', @@ -176,7 +169,6 @@ class BuiltinFilterFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCas 'test_tuple_bytearray', 'test_tuple_bytes', - 'test_tuple_class', 'test_tuple_dict', 'test_tuple_frozenset', 'test_tuple_list', diff --git a/tests/builtins/test_format.py b/tests/builtins/test_format.py index 78d66b6d44..f9c6a6943f 100644 --- a/tests/builtins/test_format.py +++ b/tests/builtins/test_format.py @@ -10,6 +10,5 @@ class BuiltinFormatFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_class', - 'test_frozenset', 'test_slice', ] diff --git a/tests/builtins/test_frozenset.py b/tests/builtins/test_frozenset.py index 061cfa01ab..605636fd10 100644 --- a/tests/builtins/test_frozenset.py +++ b/tests/builtins/test_frozenset.py @@ -11,9 +11,6 @@ class BuiltinFrozensetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_dict', - 'test_frozenset', - 'test_slice', 'test_str', 'test_tuple', ] diff --git a/tests/builtins/test_getattr.py b/tests/builtins/test_getattr.py index 03c1408df5..e0272d040e 100644 --- a/tests/builtins/test_getattr.py +++ b/tests/builtins/test_getattr.py @@ -43,36 +43,20 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa functions = ["getattr"] not_implemented = [ - 'test_bool_class', - 'test_class_complex', - 'test_class_float', - 'test_class_list', - 'test_class_range', 'test_class_str', - 'test_dict_frozenset', - 'test_float_frozenset', - 'test_frozenset_bytearray', - 'test_frozenset_bytes', - 'test_frozenset_float', - 'test_frozenset_int', - 'test_frozenset_list', - 'test_frozenset_NotImplemented', - 'test_list_frozenset', - 'test_None_frozenset', - 'test_set_class', diff --git a/tests/builtins/test_hasattr.py b/tests/builtins/test_hasattr.py index 40e482e4ee..b2b30e20e6 100644 --- a/tests/builtins/test_hasattr.py +++ b/tests/builtins/test_hasattr.py @@ -35,43 +35,19 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa not_implemented = [ - 'test_bytearray_frozenset', - 'test_bytes_class', - 'test_class_bytes', - 'test_class_complex', - 'test_class_list', - 'test_class_None', - 'test_class_range', - 'test_class_set', - 'test_class_str', - 'test_class_tuple', - 'test_float_frozenset', - 'test_frozenset_bytearray', - 'test_frozenset_bytes', - 'test_frozenset_class', - 'test_frozenset_dict', - 'test_frozenset_float', - 'test_frozenset_frozenset', - 'test_frozenset_None', - 'test_frozenset_slice', - 'test_frozenset_tuple', - 'test_list_frozenset', - 'test_NotImplemented_class', - 'test_slice_frozenset', - 'test_str_class', ] diff --git a/tests/builtins/test_issubclass.py b/tests/builtins/test_issubclass.py index 9edd5123fe..57a72aef37 100644 --- a/tests/builtins/test_issubclass.py +++ b/tests/builtins/test_issubclass.py @@ -93,9 +93,4 @@ class BuiltinIssubclassFunctionTests(BuiltinFunctionTestCase, TranspileTestCase) functions = ["issubclass"] not_implemented = [ - 'test_bytes', - 'test_dict', - 'test_set', - 'test_str', - 'test_tuple', ] diff --git a/tests/builtins/test_iter.py b/tests/builtins/test_iter.py index d455591547..b3aa9ebb9a 100644 --- a/tests/builtins/test_iter.py +++ b/tests/builtins/test_iter.py @@ -11,6 +11,5 @@ class BuiltinIterFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_range', 'test_str', ] diff --git a/tests/builtins/test_list.py b/tests/builtins/test_list.py index 18097d1ba8..f32383182a 100644 --- a/tests/builtins/test_list.py +++ b/tests/builtins/test_list.py @@ -20,7 +20,5 @@ class BuiltinListFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_class', 'test_dict', - 'test_str', ] diff --git a/tests/builtins/test_map.py b/tests/builtins/test_map.py index 8db12218ab..f01db4cdb4 100644 --- a/tests/builtins/test_map.py +++ b/tests/builtins/test_map.py @@ -37,52 +37,34 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): 'test_bool_bytearray', 'test_bytearray_bytearray', - 'test_bytearray_dict', 'test_bytes_bytearray', 'test_class_bytearray', 'test_complex_bytearray', - 'test_complex_dict', 'test_dict_bytearray', - 'test_dict_str', 'test_float_bytearray', - 'test_float_frozenset', 'test_frozenset_bytearray', - 'test_frozenset_int', - 'test_frozenset_tuple', 'test_int_bytearray', 'test_list_bytearray', - 'test_list_frozenset', 'test_None_bytearray', - 'test_None_frozenset', 'test_NotImplemented_bytearray', 'test_range_bytearray', - 'test_range_dict', 'test_set_bytearray', - 'test_set_bytes', - 'test_set_set', 'test_slice_bytearray', - 'test_slice_str', 'test_str_bytearray', - 'test_str_dict', - 'test_str_set', 'test_tuple_bytearray', - 'test_tuple_bytes', - 'test_tuple_dict', - 'test_tuple_set', - 'test_tuple_str', ] diff --git a/tests/builtins/test_min.py b/tests/builtins/test_min.py index 68abfa8478..9f7c0870a7 100644 --- a/tests/builtins/test_min.py +++ b/tests/builtins/test_min.py @@ -77,7 +77,6 @@ class BuiltinMinFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_bytes', 'test_frozenset', 'test_set', 'test_tuple', diff --git a/tests/builtins/test_pow.py b/tests/builtins/test_pow.py index e2d0147cb0..9d1368f3b1 100644 --- a/tests/builtins/test_pow.py +++ b/tests/builtins/test_pow.py @@ -112,23 +112,16 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest not_implemented = [ 'test_bool_complex', - 'test_bool_frozenset', - 'test_bytes_frozenset', - 'test_complex_bool', 'test_complex_complex', - 'test_complex_set', - 'test_complex_tuple', 'test_float_complex', 'test_float_float', - 'test_frozenset_int', - 'test_frozenset_tuple', 'test_int_complex', 'test_int_float', @@ -137,7 +130,6 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest - 'test_set_frozenset', diff --git a/tests/builtins/test_range.py b/tests/builtins/test_range.py index afe0bb3036..71ad29453b 100644 --- a/tests/builtins/test_range.py +++ b/tests/builtins/test_range.py @@ -10,5 +10,4 @@ class BuiltinRangeFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bool', - 'test_frozenset', ] diff --git a/tests/builtins/test_str.py b/tests/builtins/test_str.py index 45f17fa964..185b68e16d 100644 --- a/tests/builtins/test_str.py +++ b/tests/builtins/test_str.py @@ -10,6 +10,5 @@ class BuiltinStrFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_class', - 'test_frozenset', 'test_slice', ] diff --git a/tests/builtins/test_sum.py b/tests/builtins/test_sum.py index 2a1dea4ec3..4df62bb007 100644 --- a/tests/builtins/test_sum.py +++ b/tests/builtins/test_sum.py @@ -30,5 +30,4 @@ class BuiltinSumFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_dict', ] diff --git a/tests/builtins/test_zip.py b/tests/builtins/test_zip.py index a555c344dd..111907c795 100644 --- a/tests/builtins/test_zip.py +++ b/tests/builtins/test_zip.py @@ -37,7 +37,6 @@ class BuiltinZipFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_class', 'test_dict', 'test_frozenset', 'test_list', diff --git a/tests/datatypes/test_NoneType.py b/tests/datatypes/test_NoneType.py index 47069db5f1..a17f314e8a 100644 --- a/tests/datatypes/test_NoneType.py +++ b/tests/datatypes/test_NoneType.py @@ -29,19 +29,10 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'None' not_implemented = [ - 'test_add_class', - 'test_direct_ne_class', - 'test_direct_ne_dict', - 'test_direct_ne_frozenset', - 'test_direct_ne_int', - 'test_direct_ne_NotImplemented', - 'test_direct_ne_range', - 'test_direct_ne_set', - 'test_direct_ge_frozenset', 'test_eq_class', @@ -51,29 +42,20 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', - 'test_lshift_frozenset', 'test_lt_class', - 'test_lt_frozenset', - 'test_modulo_class', 'test_modulo_complex', 'test_multiply_bytes', 'test_multiply_bytearray', - 'test_multiply_class', 'test_ne_class', - 'test_or_class', - 'test_or_frozenset', - 'test_power_class', - 'test_subscr_class', - 'test_subtract_class', ] @@ -83,11 +65,9 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) data_type = 'None' not_implemented = [ - 'test_add_frozenset', - 'test_lshift_frozenset', 'test_modulo_complex', @@ -99,7 +79,6 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) - 'test_rshift_class', diff --git a/tests/datatypes/test_NotImplemented.py b/tests/datatypes/test_NotImplemented.py index 2ebd333183..086ef9b74b 100644 --- a/tests/datatypes/test_NotImplemented.py +++ b/tests/datatypes/test_NotImplemented.py @@ -17,11 +17,9 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC data_type = 'NotImplemented' not_implemented = [ - 'test_add_class', - 'test_direct_eq_frozenset', 'test_eq_class', @@ -31,8 +29,6 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_le_class', - 'test_lshift_class', - 'test_lshift_frozenset', 'test_lt_class', @@ -40,17 +36,13 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC 'test_multiply_bytes', 'test_multiply_bytearray', - 'test_multiply_frozenset', 'test_ne_class', - 'test_or_class', - 'test_or_frozenset', - 'test_subtract_frozenset', ] @@ -93,7 +85,6 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_multiply_bytes', 'test_multiply_bytearray', - 'test_multiply_class', 'test_multiply_list', 'test_multiply_str', 'test_multiply_tuple', @@ -104,7 +95,6 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_ne_frozenset', - 'test_power_class', 'test_subscr_bytearray', @@ -113,8 +103,6 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_subscr_complex', 'test_subscr_frozenset', - 'test_subtract_class', - 'test_subtract_frozenset', ] diff --git a/tests/datatypes/test_bool.py b/tests/datatypes/test_bool.py index cad6c81ed3..afdd297bf7 100644 --- a/tests/datatypes/test_bool.py +++ b/tests/datatypes/test_bool.py @@ -35,32 +35,23 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_complex', - 'test_and_class', - 'test_direct_lt_bytes', - 'test_direct_ne_bytes', 'test_eq_class', - 'test_eq_frozenset', 'test_ge_class', - 'test_ge_frozenset', 'test_gt_class', - 'test_gt_frozenset', 'test_le_class', - 'test_le_frozenset', 'test_lt_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_complex', - 'test_multiply_frozenset', 'test_ne_class', @@ -86,7 +77,6 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_str', 'test_subscr_tuple', - 'test_subtract_class', 'test_subtract_complex', 'test_true_divide_bytearray', @@ -119,7 +109,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_floor_divide_bool', 'test_floor_divide_float', - 'test_floor_divide_frozenset', 'test_floor_divide_int', @@ -131,7 +120,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_bool', 'test_multiply_bytearray', 'test_multiply_bytes', - 'test_multiply_class', 'test_multiply_complex', 'test_multiply_float', 'test_multiply_int', diff --git a/tests/datatypes/test_bytearray.py b/tests/datatypes/test_bytearray.py index 7c5e24a1db..611cbed991 100644 --- a/tests/datatypes/test_bytearray.py +++ b/tests/datatypes/test_bytearray.py @@ -34,8 +34,6 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_direct_eq_frozenset', - 'test_direct_ne_frozenset', 'test_eq_class', @@ -44,28 +42,21 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_gt_class', 'test_le_class', - 'test_le_frozenset', 'test_lt_class', - 'test_modulo_class', 'test_modulo_complex', 'test_ne_class', - 'test_or_frozenset', - 'test_power_class', - 'test_power_frozenset', - 'test_true_divide_frozenset', - 'test_xor_class', ] @@ -73,23 +64,16 @@ class InplaceBytearrayOperationTests(InplaceOperationTestCase, TranspileTestCase data_type = 'bytearray' not_implemented = [ - 'test_add_class', - 'test_and_class', - 'test_and_frozenset', - 'test_floor_divide_class', 'test_modulo_complex', - 'test_power_class', - 'test_subtract_class', - 'test_true_divide_frozenset', ] diff --git a/tests/datatypes/test_bytes.py b/tests/datatypes/test_bytes.py index d854a761f6..8d59d5243e 100644 --- a/tests/datatypes/test_bytes.py +++ b/tests/datatypes/test_bytes.py @@ -55,48 +55,27 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'bytes' not_implemented = [ - 'test_add_frozenset', - 'test_and_class', - 'test_and_frozenset', 'test_direct_eq_bytearray', - 'test_direct_eq_bytes', - 'test_direct_eq_int', 'test_direct_eq_none', - 'test_direct_eq_set', 'test_direct_ge_bytearray', - 'test_direct_ge_frozenset', 'test_direct_ge_none', 'test_direct_gt_bytearray', - 'test_direct_gt_int', 'test_direct_gt_none', - 'test_direct_gt_set', - 'test_direct_gt_str', 'test_direct_le_bytearray', - 'test_direct_le_class', - 'test_direct_le_complex', 'test_direct_le_none', 'test_direct_lt_bytearray', - 'test_direct_lt_complex', 'test_direct_lt_none', 'test_direct_ne_bytearray', - 'test_direct_ne_bytes', - 'test_direct_ne_complex', - 'test_direct_ne_frozenset', - 'test_direct_ne_list', 'test_direct_ne_none', - 'test_direct_ne_tuple', - 'test_direct_ge_frozenset', - 'test_direct_ne_frozenset', - 'test_eq_bytearray', 'test_eq_class', 'test_ne_class', @@ -109,17 +88,13 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lt_class', - 'test_lshift_class', 'test_modulo_complex', 'test_modulo_dict', - 'test_modulo_int', - 'test_or_class', - 'test_rshift_frozenset', @@ -132,23 +107,14 @@ class InplaceBytesOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_and_class', - 'test_and_frozenset', - 'test_floor_divide_class', - 'test_lshift_class', - 'test_modulo_None', 'test_modulo_complex', - 'test_modulo_dict', - 'test_modulo_list', - 'test_modulo_range', - 'test_rshift_frozenset', diff --git a/tests/datatypes/test_complex.py b/tests/datatypes/test_complex.py index 8b16163c34..66cf2b95a8 100644 --- a/tests/datatypes/test_complex.py +++ b/tests/datatypes/test_complex.py @@ -64,13 +64,10 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): } not_implemented = [ - 'test_add_class', - 'test_direct_gt_frozenset', - 'test_direct_ne_int', 'test_eq_class', @@ -85,20 +82,15 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lt_class', - 'test_multiply_class', 'test_ne_class', - 'test_ne_frozenset', - 'test_or_class', - 'test_true_divide_class', - 'test_xor_class', ] @@ -111,10 +103,7 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_float', 'test_add_int', - 'test_and_bool', - 'test_and_bytes', 'test_and_none', - 'test_and_str', 'test_eq_None', 'test_eq_NotImplemented', @@ -210,12 +199,6 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_le_str', 'test_le_tuple', - 'test_lshift_NotImplemented', - 'test_lshift_slice', - 'test_lshift_bytes', - 'test_lshift_class', - 'test_lshift_float', - 'test_lshift_int', 'test_lshift_none', 'test_lt_None', @@ -261,7 +244,6 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_bytes', 'test_multiply_complex', 'test_multiply_float', - 'test_multiply_frozenset', 'test_multiply_int', 'test_multiply_list', 'test_multiply_none', @@ -289,17 +271,11 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_bool', - 'test_power_bytes', 'test_power_complex', - 'test_power_dict', 'test_power_float', - 'test_power_frozenset', 'test_power_int', - 'test_power_list', 'test_power_none', - 'test_rshift_int', - 'test_rshift_list', 'test_rshift_none', 'test_subscr_None', @@ -322,10 +298,8 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_subscr_tuple', 'test_subtract_bool', - 'test_subtract_class', 'test_subtract_complex', 'test_subtract_float', - 'test_subtract_frozenset', 'test_subtract_int', 'test_true_divide_bool', @@ -333,7 +307,5 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_true_divide_float', 'test_true_divide_int', 'test_true_divide_none', - 'test_true_divide_set', - 'test_true_divide_tuple', ] diff --git a/tests/datatypes/test_dict.py b/tests/datatypes/test_dict.py index 539d2bc187..be960f1d7a 100644 --- a/tests/datatypes/test_dict.py +++ b/tests/datatypes/test_dict.py @@ -305,14 +305,9 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'dict' not_implemented = [ - 'test_add_frozenset', - 'test_and_frozenset', - 'test_direct_ge_frozenset', - 'test_direct_gt_frozenset', - 'test_direct_ne_frozenset', 'test_eq_class', @@ -325,7 +320,6 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lt_class', - 'test_modulo_class', 'test_modulo_complex', 'test_multiply_bytearray', @@ -334,7 +328,6 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): - 'test_rshift_frozenset', 'test_subscr_bytearray', 'test_subscr_class', @@ -353,19 +346,13 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): - 'test_lshift_frozenset', 'test_modulo_complex', - 'test_modulo_frozenset', - 'test_multiply_frozenset', - 'test_power_frozenset', - 'test_subtract_class', - 'test_true_divide_class', ] diff --git a/tests/datatypes/test_float.py b/tests/datatypes/test_float.py index dd02de6b07..a04a9df844 100644 --- a/tests/datatypes/test_float.py +++ b/tests/datatypes/test_float.py @@ -107,14 +107,9 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'float' not_implemented = [ - 'test_add_frozenset', - 'test_direct_eq_bytes', - 'test_direct_gt_bytes', - 'test_direct_ne_bytes', - 'test_direct_ge_frozenset', 'test_eq_class', @@ -126,10 +121,8 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lt_class', - 'test_lt_frozenset', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytearray', 'test_multiply_bytes', @@ -166,9 +159,7 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subtract_complex', - 'test_true_divide_class', 'test_true_divide_complex', - 'test_true_divide_frozenset', ] @@ -177,7 +168,6 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'float' not_implemented = [ - 'test_add_class', 'test_add_complex', @@ -197,12 +187,9 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_tuple', - 'test_power_class', 'test_power_complex', 'test_power_float', - 'test_power_frozenset', - 'test_rshift_frozenset', 'test_subtract_complex', diff --git a/tests/datatypes/test_frozenset.py b/tests/datatypes/test_frozenset.py index 8b3e2af08c..114d1ff39a 100644 --- a/tests/datatypes/test_frozenset.py +++ b/tests/datatypes/test_frozenset.py @@ -330,46 +330,15 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_and_class', - - 'test_direct_eq_bytearray', - 'test_direct_eq_dict', - 'test_direct_eq_int', - 'test_direct_eq_slice', - - 'test_direct_ne_bool', - 'test_direct_ne_dict', - 'test_direct_ne_float', - 'test_direct_ne_frozenset', - 'test_direct_ne_set', - 'test_direct_ne_tuple', - - 'test_direct_le_int', - 'test_direct_le_NotImplemented', - 'test_direct_le_range', - 'test_direct_le_slice', - 'test_direct_le_tuple', - - 'test_direct_lt_complex', - 'test_direct_lt_float', - 'test_direct_lt_int', - 'test_direct_lt_list', - 'test_direct_lt_slice', - 'test_direct_lt_str', - - 'test_direct_ge_frozenset', - 'test_direct_ge_tuple', - - 'test_direct_gt_NotImplemented', - 'test_direct_gt_range', - 'test_direct_gt_tuple', + + + + + + 'test_eq_class', - 'test_floor_divide_bytes', - 'test_floor_divide_list', - 'test_floor_divide_range', - 'test_floor_divide_str', 'test_ge_class', @@ -377,36 +346,16 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', - 'test_lshift_frozenset', - 'test_lshift_list', - 'test_lshift_tuple', 'test_lt_class', 'test_modulo_complex', - 'test_modulo_int', - 'test_modulo_NotImplemented', - 'test_modulo_range', - 'test_modulo_set', - 'test_multiply_class', 'test_ne_class', - 'test_ne_complex', - 'test_ne_frozenset', - 'test_ne_set', - 'test_power_dict', - 'test_power_float', - 'test_power_frozenset', - 'test_power_list', - 'test_power_None', - 'test_power_NotImplemented', - 'test_power_set', - 'test_rshift_dict', - 'test_rshift_slice', 'test_subscr_bool', 'test_subscr_bytearray', @@ -426,14 +375,7 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_str', 'test_subscr_tuple', - 'test_subtract_class', - 'test_true_divide_float', - 'test_true_divide_list', - 'test_true_divide_NotImplemented', - 'test_true_divide_range', - 'test_true_divide_set', - 'test_true_divide_slice', ] @@ -442,54 +384,16 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase data_type = 'frozenset' not_implemented = [ - 'test_add_bytes', - 'test_add_int', - 'test_add_list', - 'test_add_slice', - 'test_and_None', - 'test_and_range', - 'test_and_slice', - 'test_and_tuple', - 'test_floor_divide_list', - 'test_floor_divide_slice', - 'test_lshift_bytes', - 'test_lshift_int', - 'test_modulo_bytearray', 'test_modulo_complex', - 'test_modulo_frozenset', - - 'test_multiply_bool', - 'test_multiply_bytearray', - 'test_multiply_None', - 'test_multiply_tuple', - - 'test_or_bytes', - 'test_or_frozenset', - - 'test_power_bytearray', - 'test_power_dict', - 'test_power_list', - - 'test_rshift_complex', - 'test_rshift_float', - 'test_rshift_NotImplemented', - - 'test_subtract_bool', - 'test_subtract_range', - 'test_subtract_str', - - 'test_true_divide_bytearray', - 'test_true_divide_bytes', - 'test_true_divide_int', - - 'test_xor_class', - 'test_xor_dict', - 'test_xor_frozenset', - 'test_xor_list', - 'test_xor_NotImplemented', - 'test_xor_slice', + + + + + + + ] diff --git a/tests/datatypes/test_int.py b/tests/datatypes/test_int.py index 442e9b72e3..b4070a1352 100644 --- a/tests/datatypes/test_int.py +++ b/tests/datatypes/test_int.py @@ -39,7 +39,6 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_direct_gt_bytes', 'test_eq_class', @@ -50,7 +49,6 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', - 'test_lshift_class', 'test_lt_class', @@ -62,14 +60,10 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_power_complex', - 'test_power_frozenset', 'test_power_float', - 'test_rshift_class', - 'test_subscr_frozenset', - 'test_subtract_frozenset', 'test_true_divide_complex', @@ -82,12 +76,9 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_complex', - 'test_and_class', - 'test_floor_divide_class', 'test_floor_divide_float', - 'test_lshift_class', 'test_modulo_complex', 'test_modulo_float', @@ -100,7 +91,6 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_str', 'test_multiply_tuple', - 'test_or_frozenset', 'test_power_complex', 'test_power_float', @@ -112,5 +102,4 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_true_divide_complex', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_list.py b/tests/datatypes/test_list.py index 125164e4ec..d9165b883b 100644 --- a/tests/datatypes/test_list.py +++ b/tests/datatypes/test_list.py @@ -603,7 +603,6 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): - 'test_direct_eq_frozenset', 'test_eq_class', @@ -615,26 +614,20 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_lt_class', - 'test_lt_frozenset', - 'test_modulo_class', 'test_modulo_complex', - 'test_multiply_frozenset', 'test_ne_class', - 'test_ne_frozenset', - 'test_rshift_frozenset', 'test_subscr_bool', 'test_subscr_slice', - 'test_xor_frozenset', ] @@ -651,18 +644,13 @@ class InplaceListOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_str', - 'test_floor_divide_complex', - 'test_floor_divide_frozenset', - 'test_lshift_class', 'test_modulo_complex', - 'test_modulo_frozenset', - 'test_rshift_class', diff --git a/tests/datatypes/test_range.py b/tests/datatypes/test_range.py index ce934122f4..e0fb055586 100644 --- a/tests/datatypes/test_range.py +++ b/tests/datatypes/test_range.py @@ -89,10 +89,8 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'range' not_implemented = [ - 'test_add_frozenset', - 'test_direct_eq_frozenset', 'test_direct_eq_range', 'test_direct_ne_range', @@ -101,26 +99,15 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_eq_range', 'test_ge_class', - 'test_ge_tuple', - 'test_gt_bool', 'test_gt_class', - 'test_gt_float', - 'test_gt_frozenset', - 'test_gt_tuple', - 'test_le_bool', 'test_le_class', - 'test_lshift_class', - 'test_lt_bool', 'test_lt_class', - 'test_lt_dict', - 'test_lt_tuple', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytearray', 'test_multiply_bytes', @@ -131,7 +118,6 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_class', 'test_ne_range', - 'test_or_class', @@ -154,8 +140,6 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): - 'test_xor_class', - 'test_xor_frozenset', ] @@ -164,20 +148,15 @@ class InplaceRangeOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_and_class', - 'test_lshift_class', - 'test_lshift_frozenset', 'test_modulo_complex', - 'test_multiply_frozenset', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_set.py b/tests/datatypes/test_set.py index da72529640..f70b56e111 100644 --- a/tests/datatypes/test_set.py +++ b/tests/datatypes/test_set.py @@ -359,19 +359,12 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'set' not_implemented = [ - 'test_add_frozenset', - 'test_and_class', - 'test_direct_eq_bytes', - 'test_direct_gt_bytearray', - 'test_direct_gt_bytes', - 'test_direct_le_slice', - 'test_direct_gt_tuple', 'test_eq_class', @@ -381,7 +374,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_le_class', - 'test_lshift_frozenset', 'test_lt_class', @@ -397,7 +389,6 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): - 'test_true_divide_class', 'test_xor_frozenset', 'test_xor_set', @@ -414,15 +405,11 @@ class InplaceSetOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_complex', - 'test_or_class', - 'test_or_frozenset', - 'test_true_divide_frozenset', - 'test_xor_class', 'test_xor_frozenset', 'test_xor_set', ] diff --git a/tests/datatypes/test_slice.py b/tests/datatypes/test_slice.py index 1777d2f659..500912e8f9 100644 --- a/tests/datatypes/test_slice.py +++ b/tests/datatypes/test_slice.py @@ -76,8 +76,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_direct_ge_frozenset', - 'test_direct_gt_frozenset', 'test_direct_eq_slice', 'test_direct_ge_slice', @@ -87,35 +85,22 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ne_slice', 'test_eq_class', - 'test_eq_frozenset', 'test_eq_slice', - 'test_ge_bytearray', 'test_ge_class', - 'test_ge_complex', - 'test_ge_dict', 'test_ge_slice', - 'test_gt_bytearray', 'test_gt_class', - 'test_gt_dict', - 'test_gt_float', - 'test_gt_frozenset', 'test_gt_slice', 'test_le_class', - 'test_le_NotImplemented', 'test_le_slice', - 'test_lshift_class', 'test_lt_class', - 'test_lt_int', 'test_lt_slice', - 'test_modulo_class', 'test_modulo_complex', - 'test_modulo_frozenset', 'test_multiply_bytearray', 'test_multiply_bytes', @@ -163,18 +148,13 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_bytearray', 'test_multiply_bytes', - 'test_multiply_class', 'test_multiply_list', 'test_multiply_str', 'test_multiply_tuple', - 'test_power_frozenset', - 'test_rshift_class', - 'test_true_divide_class', - 'test_xor_frozenset', ] diff --git a/tests/datatypes/test_str.py b/tests/datatypes/test_str.py index 631cc2ecfa..346a33624b 100644 --- a/tests/datatypes/test_str.py +++ b/tests/datatypes/test_str.py @@ -698,22 +698,17 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_and_class', - 'test_direct_gt_bytes', - 'test_direct_gt_frozenset', 'test_eq_class', 'test_ge_class', 'test_gt_class', - 'test_gt_frozenset', 'test_le_class', - 'test_lshift_frozenset', 'test_lt_class', @@ -737,20 +732,15 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_class', - 'test_ne_frozenset', 'test_subscr_bool', - 'test_subscr_frozenset', 'test_subscr_slice', - 'test_true_divide_class', - 'test_true_divide_frozenset', - 'test_xor_frozenset', ] @@ -758,11 +748,8 @@ class InplaceStrOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'str' not_implemented = [ - 'test_add_frozenset', - 'test_and_frozenset', - 'test_lshift_class', 'test_modulo_bool', 'test_modulo_bytes', @@ -784,7 +771,6 @@ class InplaceStrOperationTests(InplaceOperationTestCase, TranspileTestCase): - 'test_power_class', diff --git a/tests/datatypes/test_tuple.py b/tests/datatypes/test_tuple.py index 1225e4bbeb..ec7fb3d415 100644 --- a/tests/datatypes/test_tuple.py +++ b/tests/datatypes/test_tuple.py @@ -272,48 +272,33 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ - 'test_direct_ge_bytes', - 'test_direct_gt_bytes', - 'test_direct_lt_bytes', - 'test_direct_ne_bytes', - 'test_direct_gt_frozenset', - 'test_direct_le_frozenset', - 'test_direct_ge_tuple', - 'test_direct_gt_tuple', 'test_eq_class', 'test_ge_class', 'test_gt_class', - 'test_gt_frozenset', 'test_le_class', 'test_lt_class', - 'test_lt_tuple', - 'test_modulo_class', 'test_modulo_complex', 'test_ne_class', - 'test_or_frozenset', 'test_subscr_bool', - 'test_subscr_class', 'test_subscr_slice', - 'test_true_divide_class', - 'test_xor_class', ] @@ -342,13 +327,9 @@ class InplaceTupleOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_str', 'test_multiply_tuple', - 'test_or_class', - 'test_rshift_frozenset', - 'test_true_divide_class', - 'test_xor_class', ] From b72e35a82588ebc5eaeb38b8a11e50835ad98da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 12:40:26 -0700 Subject: [PATCH 08/25] Remove accidental flake8 fixes --- tests/utils.py | 255 ++++++++++++++++++++++++------------------------- 1 file changed, 126 insertions(+), 129 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index 15100f1131..56b7d07d3d 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -107,10 +107,10 @@ def adjust(text, run_in_function=False): if run_in_function: final_lines = [ - "def test_function():", - ] + final_lines + [ - "test_function()", - ] + "def test_function():", + ] + final_lines + [ + "test_function()", + ] return '\n'.join(final_lines) @@ -302,6 +302,7 @@ def cleanse_python(raw, substitutions): class TranspileTestCase(TestCase): + @classmethod def setUpClass(cls): global _output_dir @@ -397,7 +398,7 @@ def assertCodeExecution( self.assertEqual(java_out, py_out, context) # Confirm that both output strings end with the canary statement - substring_start = - (len(END_OF_CODE_STRING) + 1) + substring_start = - (len(END_OF_CODE_STRING)+1) if exits_early: self.assertNotEqual(java_out[substring_start:], END_OF_CODE_STRING_NEWLINE) self.assertNotEqual(py_out[substring_start:], END_OF_CODE_STRING_NEWLINE) @@ -436,7 +437,7 @@ def assertCodeExecution( self.assertEqual(java_out, py_out, context) # Confirm that both output strings end with the canary statement - substring_start = - (len(END_OF_CODE_STRING) + 1) + substring_start = - (len(END_OF_CODE_STRING)+1) if exits_early: self.assertNotEqual(java_out[substring_start:], END_OF_CODE_STRING_NEWLINE) self.assertNotEqual(py_out[substring_start:], END_OF_CODE_STRING_NEWLINE) @@ -445,10 +446,10 @@ def assertCodeExecution( self.assertEqual(py_out[substring_start:], END_OF_CODE_STRING_NEWLINE) def assertJavaExecution( - self, code, out, - extra_code=None, java=None, - run_in_global=True, run_in_function=True, - args=None, substitutions=None): + self, code, out, + extra_code=None, java=None, + run_in_global=True, run_in_function=True, + args=None, substitutions=None): """Run code under Java and check the output is as expected""" global _output_dir self.maxDiff = None @@ -606,108 +607,109 @@ def wrapper(*args, **kwargs): SAMPLE_DATA = { 'bool': [ - 'True', - 'False', - ], + 'True', + 'False', + ], 'bytearray': [ - 'bytearray()', - 'bytearray(1)', - 'bytearray([1, 2, 3])', - # 'bytearray(b"hello world")', - ], + 'bytearray()', + 'bytearray(1)', + 'bytearray([1, 2, 3])', + # 'bytearray(b"hello world")', + ], 'bytes': [ - 'b""', - 'b"This is another string of bytes"', - 'b"One arg: %s"', - 'b"Three args: %s | %s | %s"', - ], + 'b""', + 'b"This is another string of bytes"', + 'b"One arg: %s"', + 'b"Three args: %s | %s | %s"', + ], 'class': [ - 'type(1)', - 'type("a")', - 'type(object())', - 'type("MyClass", (object,), {})', - ], + 'type(1)', + 'type("a")', + 'type(object())', + 'type("MyClass", (object,), {})', + ], 'complex': [ - '1j', - '3.14159265j', - '1+2j', - '3-4j', - '-5j', - ], + '1j', + '3.14159265j', + '1+2j', + '3-4j', + '-5j', + ], 'dict': [ - '{}', - '{"a": 1, "c": 2.3456, "d": "another"}', - ], + '{}', + '{"a": 1, "c": 2.3456, "d": "another"}', + ], 'float': [ - '2.3456', - '0.0', - '-3.14159', - '-4.81756', - '5.5', - '-3.5', - '4.5', - '-4.5', - ], + '2.3456', + '0.0', + '-3.14159', + '-4.81756', + '5.5', + '-3.5', + '4.5', + '-4.5', + ], 'frozenset': [ - 'frozenset()', - 'frozenset({1, 2.3456, "another"})', - ], + 'frozenset()', + 'frozenset({1, 2.3456, "another"})', + ], 'int': [ - '0', - '-5', - '-3', - '3', - '1', - ], + '0', + '-5', + '-3', + '3', + '1', + ], 'list': [ - '[]', - '[3, 4, 5]', - '[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]', - '["a","b","c"]', - ], + '[]', + '[3, 4, 5]', + '[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]', + '["a","b","c"]', + ], 'range': [ - 'range(0)', - 'range(5)', - 'range(2, 7)', - 'range(2, 7, 2)', - 'range(7, 2, -1)', - 'range(7, 2, -2)', - ], + 'range(0)', + 'range(5)', + 'range(2, 7)', + 'range(2, 7, 2)', + 'range(7, 2, -1)', + 'range(7, 2, -2)', + ], 'set': [ - 'set()', - 'set({1, 2.3456, "another"})', - ], + 'set()', + 'set({1, 2.3456, "another"})', + ], 'slice': [ - 'slice(0)', - 'slice(5)', - 'slice(2, 7)', - 'slice(2, 7, 2)', - 'slice(7, 2, -1)', - 'slice(7, 2, -2)', - ], + 'slice(0)', + 'slice(5)', + 'slice(2, 7)', + 'slice(2, 7, 2)', + 'slice(7, 2, -1)', + 'slice(7, 2, -2)', + ], 'str': [ - '""', - '"3"', - '"This is another string"', - '"Mÿ hôvèrçràft îß fûłl öf éêlś"', - '"One arg: %s"', - '"Three args: %s | %s | %s"', - ], + '""', + '"3"', + '"This is another string"', + '"Mÿ hôvèrçràft îß fûłl öf éêlś"', + '"One arg: %s"', + '"Three args: %s | %s | %s"', + ], 'tuple': [ - '(1,)', - '(1, 2)', - '(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)', - '(3, 1.2, True, )', - '(1, 2.3456, "another")', - ], + '(1,)', + '(1, 2)', + '(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)', + '(3, 1.2, True, )', + '(1, 2.3456, "another")', + ], 'None': [ - 'None', - ], + 'None', + ], 'NotImplemented': [ - 'NotImplemented', - ], + 'NotImplemented', + ], } + SAMPLE_SUBSTITUTIONS = { # Normalize set ordering "{1, 2.3456, 'another'}": [ @@ -745,7 +747,6 @@ def func(self): format=self.format, substitutions=getattr(self, 'substitutions', SAMPLE_SUBSTITUTIONS) ) - return func @@ -765,11 +766,11 @@ def assertUnaryOperation(self, x_values, operation, format, substitutions): print(type(e), ':', e) print() """ % { - 'x': x, - 'operation': operation, - 'format': format, - } - ) + 'x': x, + 'operation': operation, + 'format': format, + } + ) for x in x_values ), "Error running %s" % operation, @@ -792,7 +793,6 @@ def func(self): format=self.format, substitutions=getattr(self, 'substitutions', SAMPLE_SUBSTITUTIONS) ) - return func @@ -820,12 +820,12 @@ def assertBinaryOperation(self, x_values, y_values, operation, format, substitut print(type(e), ':', e) print() """ % { - 'x': x, - 'y': y, - 'operation': operation, - 'format': format, - } - ) + 'x': x, + 'y': y, + 'operation': operation, + 'format': format, + } + ) for x, y in data ), "Error running %s" % operation, @@ -872,7 +872,6 @@ def func(self): format=self.format, substitutions=getattr(self, 'substitutions', SAMPLE_SUBSTITUTIONS) ) - return func @@ -902,12 +901,12 @@ def assertInplaceOperation(self, x_values, y_values, operation, format, substitu print(type(e), ':', e) print() """ % { - 'x': x, - 'y': y, - 'operation': operation, - 'format': format, - } - ) + 'x': x, + 'y': y, + 'operation': operation, + 'format': format, + } + ) for x, y in data ), "Error running %s" % operation, @@ -987,7 +986,6 @@ def func(self): format=self.format, substitutions=getattr(self, 'substitutions', SAMPLE_SUBSTITUTIONS) ) - return func @@ -1014,12 +1012,12 @@ def assertBuiltinFunction(self, f_values, x_values, operation, format, substitut print(type(e), ':', e) print() """ % { - 'f': f, - 'x': x, - 'operation': operation, - 'format': format, - } - ) + 'f': f, + 'x': x, + 'operation': operation, + 'format': format, + } + ) for f, x in data ), "Error running %s" % operation, @@ -1041,7 +1039,6 @@ def func(self): format=self.format, substitutions=getattr(self, 'substitutions', SAMPLE_SUBSTITUTIONS) ) - return func @@ -1071,13 +1068,13 @@ def assertBuiltinTwoargFunction(self, f_values, x_values, y_values, operation, f print(type(e), ':', e) print() """ % { - 'f': f, - 'x': x, - 'y': y, - 'operation': operation, - 'format': format, - } - ) + 'f': f, + 'x': x, + 'y': y, + 'operation': operation, + 'format': format, + } + ) for f, x, y in data ), "Error running %s" % operation, From 2848badf17fd77138ee9e0b3999805e7e60d24c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 13:48:39 -0700 Subject: [PATCH 09/25] =?UTF-8?q?Fix=20=E2=80=9CUnexpected=20success?= =?UTF-8?q?=E2=80=9D=20by=20removing=20=E2=80=98test=5Ffrozenset=E2=80=99?= =?UTF-8?q?=20from=20BuiltinDictFunctionTests.not=5Fimplementeed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/builtins/test_dict.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/builtins/test_dict.py b/tests/builtins/test_dict.py index e1800fd0a2..3fabc0cf10 100644 --- a/tests/builtins/test_dict.py +++ b/tests/builtins/test_dict.py @@ -10,7 +10,6 @@ class BuiltinDictFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_frozenset', 'test_list', 'test_str', ] From 56e5e255b19c0b0d5998628706542d8f9666f58c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 13:49:32 -0700 Subject: [PATCH 10/25] =?UTF-8?q?Put=20=E2=80=98test=5Ffrozenset=E2=80=99?= =?UTF-8?q?=20back=20into=20BuiltinSumFunctionTests.not=5Fimplemented?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m fairly certain that this was accidentally removed by my automatic processing --- tests/builtins/test_sum.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/builtins/test_sum.py b/tests/builtins/test_sum.py index 4df62bb007..031f1e871a 100644 --- a/tests/builtins/test_sum.py +++ b/tests/builtins/test_sum.py @@ -30,4 +30,5 @@ class BuiltinSumFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', + 'test_frozenzet', ] From 6a3bea71ec5a109015df647cfd4e1b3fd77f4323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 13:51:39 -0700 Subject: [PATCH 11/25] Retore accidentally removed `test_frozenset` to BuiltinSortedFunctionTests.not_implemented --- tests/builtins/test_sorted.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/builtins/test_sorted.py b/tests/builtins/test_sorted.py index c18c321aa8..74a4780578 100644 --- a/tests/builtins/test_sorted.py +++ b/tests/builtins/test_sorted.py @@ -27,5 +27,6 @@ class BuiltinSortedFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', + 'test_fozenset', 'test_set', ] From fc58c0e00866a5be8ec8a4f7c5c8b106a92159fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 22 May 2017 13:55:34 -0700 Subject: [PATCH 12/25] =?UTF-8?q?Restore=20accidentally=20removed=20?= =?UTF-8?q?=E2=80=98test=5Fdict=E2=80=99=20from=20BuiltinFrozensetFunction?= =?UTF-8?q?Tests.not=5Fimplemented?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/builtins/test_frozenset.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/builtins/test_frozenset.py b/tests/builtins/test_frozenset.py index 605636fd10..a33a33653e 100644 --- a/tests/builtins/test_frozenset.py +++ b/tests/builtins/test_frozenset.py @@ -11,6 +11,7 @@ class BuiltinFrozensetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', + 'test_dict', 'test_str', 'test_tuple', ] From 03ef2063c5f3ceefd20f11c6f9091b88b3d3ca54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Tue, 23 May 2017 17:35:20 -0500 Subject: [PATCH 13/25] Remove unexpected successes --- tests/builtins/test_dict.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/builtins/test_dict.py b/tests/builtins/test_dict.py index 3fabc0cf10..48aafd4659 100644 --- a/tests/builtins/test_dict.py +++ b/tests/builtins/test_dict.py @@ -10,6 +10,4 @@ class BuiltinDictFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_list', - 'test_str', ] From 5687a8222a0a3d2ef3d71214cf3fbfe26d6b2ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Sat, 27 May 2017 08:07:09 -0400 Subject: [PATCH 14/25] Fixups and cleanups for versioned test failures --- tests/builtins/test_frozenset.py | 5 ++- tests/builtins/test_pow.py | 17 ++------- tests/datatypes/test_bytes.py | 65 ++++++++++++++++++-------------- tests/datatypes/test_complex.py | 23 +---------- tests/datatypes/test_range.py | 60 +++++++++-------------------- tests/utils.py | 14 ++++++- 6 files changed, 75 insertions(+), 109 deletions(-) diff --git a/tests/builtins/test_frozenset.py b/tests/builtins/test_frozenset.py index a33a33653e..1cb2052c98 100644 --- a/tests/builtins/test_frozenset.py +++ b/tests/builtins/test_frozenset.py @@ -13,5 +13,8 @@ class BuiltinFrozensetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_bytes', 'test_dict', 'test_str', - 'test_tuple', ] + + not_implemented_versions = { + 'test_tuple': (3.4,), + } diff --git a/tests/builtins/test_pow.py b/tests/builtins/test_pow.py index 9d1368f3b1..1299c0aa9f 100644 --- a/tests/builtins/test_pow.py +++ b/tests/builtins/test_pow.py @@ -110,27 +110,16 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest functions = ["pow"] not_implemented = [ - 'test_bool_complex', - - - 'test_complex_complex', - 'test_float_complex', 'test_float_float', - 'test_int_complex', 'test_int_float', - - - - - - - - ] + not_implemented_versions = { + 'test_complex_float': (3.4, 3.5), + } diff --git a/tests/datatypes/test_bytes.py b/tests/datatypes/test_bytes.py index 74b5d248aa..c549ef68bc 100644 --- a/tests/datatypes/test_bytes.py +++ b/tests/datatypes/test_bytes.py @@ -73,8 +73,6 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'bytes' not_implemented = [ - - 'test_direct_eq_bytearray', 'test_direct_eq_none', @@ -93,41 +91,50 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ne_bytearray', 'test_direct_ne_none', - - - - - - - - 'test_modulo_complex', 'test_modulo_dict', - - - - - - - - ] + not_implemented_versions = { + 'test_modulo_None': (3.5, 3.6), + 'test_modulo_NotImplemented': (3.5, 3.6), + 'test_modulo_bool': (3.5, 3.6), + 'test_modulo_bytearray': (3.5, 3.6), + 'test_modulo_bytes': (3.5, 3.6), + 'test_modulo_class': (3.5, 3.6), + 'test_modulo_float': (3.5, 3.6), + 'test_modulo_frozenset': (3.5, 3.6), + 'test_modulo_int': (3.5, 3.6), + 'test_modulo_list': (3.5, 3.6), + 'test_modulo_range': (3.5, 3.6), + 'test_modulo_set': (3.5, 3.6), + 'test_modulo_slice': (3.5, 3.6), + 'test_modulo_str': (3.5, 3.6), + 'test_modulo_tuple': (3.5, 3.6), + } class InplaceBytesOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'bytes' not_implemented = [ - - - - 'test_modulo_complex', - - - - - - - + 'test_modulo_dict', ] + + not_implemented_versions = { + 'test_modulo_None': (3.5, 3.6), + 'test_modulo_NotImplemented': (3.5, 3.6), + 'test_modulo_bool': (3.5, 3.6), + 'test_modulo_bytearray': (3.5, 3.6), + 'test_modulo_bytes': (3.5, 3.6), + 'test_modulo_class': (3.5, 3.6), + 'test_modulo_float': (3.5, 3.6), + 'test_modulo_frozenset': (3.5, 3.6), + 'test_modulo_int': (3.5, 3.6), + 'test_modulo_list': (3.5, 3.6), + 'test_modulo_range': (3.5, 3.6), + 'test_modulo_set': (3.5, 3.6), + 'test_modulo_slice': (3.5, 3.6), + 'test_modulo_str': (3.5, 3.6), + 'test_modulo_tuple': (3.5, 3.6), + } \ No newline at end of file diff --git a/tests/datatypes/test_complex.py b/tests/datatypes/test_complex.py index 44abcccc63..8f7934fc81 100644 --- a/tests/datatypes/test_complex.py +++ b/tests/datatypes/test_complex.py @@ -64,27 +64,8 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): } not_implemented = [ - - - - - - - - - - - - - - - - - - - - - + 'test_power_complex', + 'test_power_float', ] diff --git a/tests/datatypes/test_range.py b/tests/datatypes/test_range.py index 21d6a241b3..fdfabdcee6 100644 --- a/tests/datatypes/test_range.py +++ b/tests/datatypes/test_range.py @@ -89,23 +89,11 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'range' not_implemented = [ - - - 'test_direct_eq_range', 'test_direct_ne_range', 'test_eq_range', - 'test_ge_class', - - 'test_gt_class', - - 'test_le_class', - - - 'test_lt_class', - 'test_modulo_complex', 'test_multiply_bytearray', @@ -116,45 +104,31 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_range', - - - 'test_subscr_bool', - 'test_subscr_bytearray', - 'test_subscr_bytes', - 'test_subscr_class', - 'test_subscr_complex', - 'test_subscr_dict', - 'test_subscr_float', - 'test_subscr_frozenset', - 'test_subscr_list', - 'test_subscr_None', - 'test_subscr_NotImplemented', - 'test_subscr_range', - 'test_subscr_set', 'test_subscr_slice', - 'test_subscr_str', - 'test_subscr_tuple', - - - ] + not_implemented_versions = { + 'test_subscr_None': (3.4,), + 'test_subscr_NotImplemented': (3.4,), + 'test_subscr_bytearray': (3.4,), + 'test_subscr_bytes': (3.4,), + 'test_subscr_class': (3.4,), + 'test_subscr_complex': (3.4,), + 'test_subscr_dict': (3.4,), + 'test_subscr_float': (3.4,), + 'test_subscr_frozenset': (3.4,), + 'test_subscr_list': (3.4,), + 'test_subscr_range': (3.4,), + 'test_subscr_set': (3.4,), + 'test_subscr_str': (3.4,), + 'test_subscr_tuple': (3.4,), + } + class InplaceRangeOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'range' not_implemented = [ - - - - 'test_modulo_complex', - - - - - - - ] diff --git a/tests/utils.py b/tests/utils.py index 13367ab2b7..4260e4f3c7 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -587,10 +587,22 @@ def runAsJava(self, main_code, extra_code=None, args=None): class NotImplementedToExpectedFailure: + def _is_not_implemented(self): + method_name = self._testMethodName + if method_name in getattr(self, 'not_implemented', []): + return True + not_implemented_versions = getattr(self, 'not_implemented_versions', {}) + if method_name not in not_implemented_versions: + return False + py_version = float("%s.%s" % (sys.version_info.major, sys.version_info.minor)) + if py_version in not_implemented_versions[method_name]: + return True + return False + def run(self, result=None): # Override the run method to inject the "expectingFailure" marker # when the test case runs. - if self._testMethodName in getattr(self, 'not_implemented', []): + if self._is_not_implemented(): # Mark 'expecting failure' on class. It will only be applicable # for this specific run. From 5d6061bf0f45344a26108dc5dab8b2299956b328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Sat, 27 May 2017 08:15:52 -0400 Subject: [PATCH 15/25] Appease flake8 --- tests/builtins/test_pow.py | 2 +- tests/datatypes/test_bytes.py | 3 ++- tests/datatypes/test_range.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/builtins/test_pow.py b/tests/builtins/test_pow.py index 1299c0aa9f..2caf877a64 100644 --- a/tests/builtins/test_pow.py +++ b/tests/builtins/test_pow.py @@ -98,7 +98,7 @@ class BuiltinPowFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_list', 'test_None', 'test_NotImplemented', - 'test_range', + '`_range', 'test_set', 'test_slice', 'test_str', diff --git a/tests/datatypes/test_bytes.py b/tests/datatypes/test_bytes.py index 6cb51c1181..cbe5c85843 100644 --- a/tests/datatypes/test_bytes.py +++ b/tests/datatypes/test_bytes.py @@ -268,6 +268,7 @@ class BinaryBytesOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_tuple': (3.5, 3.6), } + class InplaceBytesOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'bytes' @@ -292,4 +293,4 @@ class InplaceBytesOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_slice': (3.5, 3.6), 'test_modulo_str': (3.5, 3.6), 'test_modulo_tuple': (3.5, 3.6), - } \ No newline at end of file + } diff --git a/tests/datatypes/test_range.py b/tests/datatypes/test_range.py index fdfabdcee6..120379481d 100644 --- a/tests/datatypes/test_range.py +++ b/tests/datatypes/test_range.py @@ -124,7 +124,7 @@ class BinaryRangeOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_str': (3.4,), 'test_subscr_tuple': (3.4,), } - + class InplaceRangeOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'range' From 7bd611f73e32303c4fe113ea0286c5f791f003d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Sat, 27 May 2017 10:19:01 -0400 Subject: [PATCH 16/25] Fix some likely good tests --- tests/builtins/test_min.py | 2 -- tests/datatypes/test_bool.py | 23 ----------------------- tests/datatypes/test_bytearray.py | 8 -------- tests/datatypes/test_slice.py | 27 --------------------------- 4 files changed, 60 deletions(-) diff --git a/tests/builtins/test_min.py b/tests/builtins/test_min.py index 9f7c0870a7..02d0ae12a6 100644 --- a/tests/builtins/test_min.py +++ b/tests/builtins/test_min.py @@ -77,7 +77,5 @@ class BuiltinMinFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_frozenset', - 'test_set', 'test_tuple', ] diff --git a/tests/datatypes/test_bool.py b/tests/datatypes/test_bool.py index afdd297bf7..ddd76b2dde 100644 --- a/tests/datatypes/test_bool.py +++ b/tests/datatypes/test_bool.py @@ -34,31 +34,10 @@ class BinaryBoolOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_complex', - - - - - 'test_eq_class', - - 'test_ge_class', - - 'test_gt_class', - - 'test_le_class', - - - 'test_lt_class', - 'test_modulo_complex', - 'test_multiply_complex', - - 'test_ne_class', - - 'test_power_complex', - 'test_subscr_bool', 'test_subscr_bytearray', 'test_subscr_bytes', @@ -111,7 +90,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_floor_divide_float', 'test_floor_divide_int', - 'test_modulo_bool', 'test_modulo_complex', 'test_modulo_float', @@ -134,7 +112,6 @@ class InplaceBoolOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_power_float', 'test_power_int', - 'test_subtract_bool', 'test_subtract_complex', 'test_subtract_float', diff --git a/tests/datatypes/test_bytearray.py b/tests/datatypes/test_bytearray.py index a72a2ceda4..ff8c194f32 100644 --- a/tests/datatypes/test_bytearray.py +++ b/tests/datatypes/test_bytearray.py @@ -32,15 +32,7 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'bytearray' not_implemented = [ - 'test_eq_class', - 'test_ge_class', - 'test_gt_class', - 'test_le_class', - 'test_lt_class', - 'test_modulo_complex', - - 'test_ne_class', ] diff --git a/tests/datatypes/test_slice.py b/tests/datatypes/test_slice.py index 18269fc7c1..e090d2f86d 100644 --- a/tests/datatypes/test_slice.py +++ b/tests/datatypes/test_slice.py @@ -151,9 +151,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'slice' not_implemented = [ - - - 'test_direct_eq_slice', 'test_direct_ge_slice', 'test_direct_gt_slice', @@ -162,18 +159,9 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_direct_ne_slice', 'test_eq_slice', - - 'test_ge_class', 'test_ge_slice', - - 'test_gt_class', 'test_gt_slice', - - 'test_le_class', 'test_le_slice', - - - 'test_lt_class', 'test_lt_slice', 'test_modulo_complex', @@ -186,9 +174,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_ne_slice', - - - 'test_subscr_bool', 'test_subscr_bytearray', 'test_subscr_bytes', @@ -206,9 +191,6 @@ class BinarySliceOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_slice', 'test_subscr_str', 'test_subscr_tuple', - - - ] @@ -216,9 +198,6 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'slice' not_implemented = [ - - - 'test_modulo_complex', 'test_multiply_bytearray', @@ -226,10 +205,4 @@ class InplaceSliceOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_list', 'test_multiply_str', 'test_multiply_tuple', - - - - - - ] From 6de95c55e2bc0b12417f8cca507d06932964b25a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Sat, 27 May 2017 16:26:10 -0400 Subject: [PATCH 17/25] =?UTF-8?q?Add=20=E2=80=9Cis=5Fflakey=E2=80=9D=20gro?= =?UTF-8?q?uping=20of=20tests=20and=20update=20various=20not=5Fimplemented?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/builtins/test_bool.py | 1 - tests/builtins/test_frozenset.py | 5 ++++- tests/builtins/test_max.py | 1 - tests/builtins/test_pow.py | 6 ++---- tests/builtins/test_set.py | 5 ++++- tests/builtins/test_sorted.py | 1 - tests/datatypes/test_bytearray.py | 9 +++++++-- tests/utils.py | 13 +++++++++++++ 8 files changed, 30 insertions(+), 11 deletions(-) diff --git a/tests/builtins/test_bool.py b/tests/builtins/test_bool.py index b451540454..79bc8989b8 100644 --- a/tests/builtins/test_bool.py +++ b/tests/builtins/test_bool.py @@ -50,5 +50,4 @@ class BuiltinBoolFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["bool"] not_implemented = [ - 'test_complex', ] diff --git a/tests/builtins/test_frozenset.py b/tests/builtins/test_frozenset.py index 1cb2052c98..8fef0bc94b 100644 --- a/tests/builtins/test_frozenset.py +++ b/tests/builtins/test_frozenset.py @@ -11,10 +11,13 @@ class BuiltinFrozensetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_dict', 'test_str', ] + is_flakey = [ + 'test_dict', + ] + not_implemented_versions = { 'test_tuple': (3.4,), } diff --git a/tests/builtins/test_max.py b/tests/builtins/test_max.py index 7a1e158375..d7a8cf15b9 100644 --- a/tests/builtins/test_max.py +++ b/tests/builtins/test_max.py @@ -75,5 +75,4 @@ class BuiltinMaxFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', - 'test_frozenset', ] diff --git a/tests/builtins/test_pow.py b/tests/builtins/test_pow.py index 2caf877a64..8a21f63133 100644 --- a/tests/builtins/test_pow.py +++ b/tests/builtins/test_pow.py @@ -98,7 +98,7 @@ class BuiltinPowFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): 'test_list', 'test_None', 'test_NotImplemented', - '`_range', + 'test_range', 'test_set', 'test_slice', 'test_str', @@ -113,6 +113,7 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_bool_complex', 'test_complex_complex', + 'test_complex_float', 'test_float_complex', 'test_float_float', @@ -120,6 +121,3 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_int_complex', 'test_int_float', ] - not_implemented_versions = { - 'test_complex_float': (3.4, 3.5), - } diff --git a/tests/builtins/test_set.py b/tests/builtins/test_set.py index adfb03b931..dd65fc10f5 100644 --- a/tests/builtins/test_set.py +++ b/tests/builtins/test_set.py @@ -11,7 +11,10 @@ class BuiltinSetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_bytes', - 'test_dict', 'test_str', 'test_tuple', ] + + is_flakey = [ + 'test_dict', + ] \ No newline at end of file diff --git a/tests/builtins/test_sorted.py b/tests/builtins/test_sorted.py index 74a4780578..dfc6066caa 100644 --- a/tests/builtins/test_sorted.py +++ b/tests/builtins/test_sorted.py @@ -28,5 +28,4 @@ class BuiltinSortedFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bytearray', 'test_fozenset', - 'test_set', ] diff --git a/tests/datatypes/test_bytearray.py b/tests/datatypes/test_bytearray.py index ff8c194f32..aa54e9bee3 100644 --- a/tests/datatypes/test_bytearray.py +++ b/tests/datatypes/test_bytearray.py @@ -32,13 +32,18 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'bytearray' not_implemented = [ - 'test_modulo_complex', ] + not_implemented_versions = { + 'test_modulo_complex': (3.4, ), + } class InplaceBytearrayOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'bytearray' not_implemented = [ - 'test_modulo_complex', ] + + not_implemented_versions = { + 'test_modulo_complex': (3.4, ), + } diff --git a/tests/utils.py b/tests/utils.py index 4260e4f3c7..50eac6812e 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -590,13 +590,23 @@ class NotImplementedToExpectedFailure: def _is_not_implemented(self): method_name = self._testMethodName if method_name in getattr(self, 'not_implemented', []): + #print('_is_not_implemented: %s' % 1) return True + + if method_name in getattr(self, "is_flakey", []): + #print('_is_not_implemented: %s' % 2) + return True + not_implemented_versions = getattr(self, 'not_implemented_versions', {}) if method_name not in not_implemented_versions: + #print('_is_not_implemented: %s' % 3) return False py_version = float("%s.%s" % (sys.version_info.major, sys.version_info.minor)) if py_version in not_implemented_versions[method_name]: + #print('_is_not_implemented: %s [%s]' % (4, py_version)) return True + + #print('_is_not_implemented: %s' % 5) return False def run(self, result=None): @@ -609,8 +619,11 @@ def run(self, result=None): # -- Save the original test_method _before_ we # overwrite it with wrapper test_method = getattr(self, self._testMethodName) + is_flakey = test_method in getattr(self, "is_flakey", []) def wrapper(*args, **kwargs): + if is_flakey: + raise Exception("Flakey test that sometimes passes and sometimes fails") return test_method(*args, **kwargs) wrapper.__unittest_expecting_failure__ = True From 3b5dda7e55047753476613d58cde5e0cc8431b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Sat, 27 May 2017 16:28:25 -0400 Subject: [PATCH 18/25] Flake8 fixes --- tests/builtins/test_set.py | 2 +- tests/datatypes/test_bytearray.py | 1 + tests/utils.py | 10 +++++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/builtins/test_set.py b/tests/builtins/test_set.py index dd65fc10f5..8d849e8b7d 100644 --- a/tests/builtins/test_set.py +++ b/tests/builtins/test_set.py @@ -17,4 +17,4 @@ class BuiltinSetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): is_flakey = [ 'test_dict', - ] \ No newline at end of file + ] diff --git a/tests/datatypes/test_bytearray.py b/tests/datatypes/test_bytearray.py index aa54e9bee3..f0174f859a 100644 --- a/tests/datatypes/test_bytearray.py +++ b/tests/datatypes/test_bytearray.py @@ -38,6 +38,7 @@ class BinaryBytearrayOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_complex': (3.4, ), } + class InplaceBytearrayOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'bytearray' diff --git a/tests/utils.py b/tests/utils.py index 50eac6812e..0003d99a6a 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -590,23 +590,23 @@ class NotImplementedToExpectedFailure: def _is_not_implemented(self): method_name = self._testMethodName if method_name in getattr(self, 'not_implemented', []): - #print('_is_not_implemented: %s' % 1) + # print('_is_not_implemented: %s' % 1) return True if method_name in getattr(self, "is_flakey", []): - #print('_is_not_implemented: %s' % 2) + # print('_is_not_implemented: %s' % 2) return True not_implemented_versions = getattr(self, 'not_implemented_versions', {}) if method_name not in not_implemented_versions: - #print('_is_not_implemented: %s' % 3) + # print('_is_not_implemented: %s' % 3) return False py_version = float("%s.%s" % (sys.version_info.major, sys.version_info.minor)) if py_version in not_implemented_versions[method_name]: - #print('_is_not_implemented: %s [%s]' % (4, py_version)) + # print('_is_not_implemented: %s [%s]' % (4, py_version)) return True - #print('_is_not_implemented: %s' % 5) + # print('_is_not_implemented: %s' % 5) return False def run(self, result=None): From e3a05b625bfe5c795e9f55aac50b1b5f56c311a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Sun, 28 May 2017 09:10:21 -0400 Subject: [PATCH 19/25] Lots of logging into utils.py --- tests/utils.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index 0003d99a6a..cbff6a8287 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -587,26 +587,30 @@ def runAsJava(self, main_code, extra_code=None, args=None): class NotImplementedToExpectedFailure: + def _is_flakey(self): + return self._testMethodName in getattr(self, "is_flakey", []) + def _is_not_implemented(self): + _debug = True method_name = self._testMethodName if method_name in getattr(self, 'not_implemented', []): - # print('_is_not_implemented: %s' % 1) + if _debug: print('%s - _is_not_implemented: not_implemented' % method_name) return True - if method_name in getattr(self, "is_flakey", []): - # print('_is_not_implemented: %s' % 2) + if self._is_flakey(): + if _debug: print('%s - _is_not_implemented: is_flakey' % method_name) return True not_implemented_versions = getattr(self, 'not_implemented_versions', {}) if method_name not in not_implemented_versions: - # print('_is_not_implemented: %s' % 3) + if _debug: print('%s - _is_not_implemented: NOT not_implemented_versions' % method_name) return False py_version = float("%s.%s" % (sys.version_info.major, sys.version_info.minor)) if py_version in not_implemented_versions[method_name]: - # print('_is_not_implemented: %s [%s]' % (4, py_version)) + if _debug: print('%s - _is_not_implemented: not_implemented_versions [%s]' % (method_name, py_version)) return True - # print('_is_not_implemented: %s' % 5) + if _debug: print('%s - _is_not_implemented: NOPE' % method_name) return False def run(self, result=None): @@ -619,10 +623,11 @@ def run(self, result=None): # -- Save the original test_method _before_ we # overwrite it with wrapper test_method = getattr(self, self._testMethodName) - is_flakey = test_method in getattr(self, "is_flakey", []) def wrapper(*args, **kwargs): - if is_flakey: + if self._is_flakey(): + with open("flakey.txt", 'a') as f: + f.write("%s : IS FLAKEY\n" % self._testMethodName) raise Exception("Flakey test that sometimes passes and sometimes fails") return test_method(*args, **kwargs) From 72912d96db31ee8ba347287a790c21eadcdad8a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Sun, 28 May 2017 10:37:04 -0400 Subject: [PATCH 20/25] make flake8 happy --- tests/utils.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index cbff6a8287..dd99048a1b 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -594,23 +594,28 @@ def _is_not_implemented(self): _debug = True method_name = self._testMethodName if method_name in getattr(self, 'not_implemented', []): - if _debug: print('%s - _is_not_implemented: not_implemented' % method_name) + if _debug: + print('%s - _is_not_implemented: not_implemented' % method_name) return True if self._is_flakey(): - if _debug: print('%s - _is_not_implemented: is_flakey' % method_name) + if _debug: + print('%s - _is_not_implemented: is_flakey' % method_name) return True not_implemented_versions = getattr(self, 'not_implemented_versions', {}) if method_name not in not_implemented_versions: - if _debug: print('%s - _is_not_implemented: NOT not_implemented_versions' % method_name) + if _debug: + print('%s - _is_not_implemented: NOT not_implemented_versions' % method_name) return False py_version = float("%s.%s" % (sys.version_info.major, sys.version_info.minor)) if py_version in not_implemented_versions[method_name]: - if _debug: print('%s - _is_not_implemented: not_implemented_versions [%s]' % (method_name, py_version)) + if _debug: + print('%s - _is_not_implemented: not_implemented_versions [%s]' % (method_name, py_version)) return True - if _debug: print('%s - _is_not_implemented: NOPE' % method_name) + if _debug: + print('%s - _is_not_implemented: NOPE' % method_name) return False def run(self, result=None): @@ -626,8 +631,6 @@ def run(self, result=None): def wrapper(*args, **kwargs): if self._is_flakey(): - with open("flakey.txt", 'a') as f: - f.write("%s : IS FLAKEY\n" % self._testMethodName) raise Exception("Flakey test that sometimes passes and sometimes fails") return test_method(*args, **kwargs) From 75f4875e95ec9753038018c860b67321996847c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Sun, 28 May 2017 17:35:30 -0400 Subject: [PATCH 21/25] Refactor _is_not_implemented method --- tests/utils.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index dd99048a1b..0e386b87f9 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -604,15 +604,12 @@ def _is_not_implemented(self): return True not_implemented_versions = getattr(self, 'not_implemented_versions', {}) - if method_name not in not_implemented_versions: - if _debug: - print('%s - _is_not_implemented: NOT not_implemented_versions' % method_name) - return False - py_version = float("%s.%s" % (sys.version_info.major, sys.version_info.minor)) - if py_version in not_implemented_versions[method_name]: - if _debug: - print('%s - _is_not_implemented: not_implemented_versions [%s]' % (method_name, py_version)) - return True + if method_name in not_implemented_versions: + py_version = float("%s.%s" % (sys.version_info.major, sys.version_info.minor)) + if py_version in not_implemented_versions[method_name]: + if _debug: + print('%s - _is_not_implemented: not_implemented_versions [%s]' % (method_name, py_version)) + return True if _debug: print('%s - _is_not_implemented: NOPE' % method_name) From 4da38f217d3e57cbac239006b547f6e28aa0e734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Sun, 28 May 2017 17:35:45 -0400 Subject: [PATCH 22/25] =?UTF-8?q?Mark=20some=20tests=20as=20=E2=80=9Cis=5F?= =?UTF-8?q?flakey=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/builtins/test_frozenset.py | 5 +---- tests/builtins/test_pow.py | 5 ++++- tests/datatypes/test_bytes.py | 5 ++++- tests/datatypes/test_complex.py | 3 +++ 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/tests/builtins/test_frozenset.py b/tests/builtins/test_frozenset.py index 8fef0bc94b..039096cd3b 100644 --- a/tests/builtins/test_frozenset.py +++ b/tests/builtins/test_frozenset.py @@ -16,8 +16,5 @@ class BuiltinFrozensetFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): is_flakey = [ 'test_dict', + 'test_tuple', ] - - not_implemented_versions = { - 'test_tuple': (3.4,), - } diff --git a/tests/builtins/test_pow.py b/tests/builtins/test_pow.py index 8a21f63133..346d0bc084 100644 --- a/tests/builtins/test_pow.py +++ b/tests/builtins/test_pow.py @@ -113,7 +113,6 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_bool_complex', 'test_complex_complex', - 'test_complex_float', 'test_float_complex', 'test_float_float', @@ -121,3 +120,7 @@ class BuiltinTwoargPowFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTest 'test_int_complex', 'test_int_float', ] + + is_flakey = [ + 'test_complex_float', + ] diff --git a/tests/datatypes/test_bytes.py b/tests/datatypes/test_bytes.py index cbe5c85843..99058e1049 100644 --- a/tests/datatypes/test_bytes.py +++ b/tests/datatypes/test_bytes.py @@ -274,7 +274,6 @@ class InplaceBytesOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ 'test_modulo_complex', - 'test_modulo_dict', ] not_implemented_versions = { @@ -294,3 +293,7 @@ class InplaceBytesOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_str': (3.5, 3.6), 'test_modulo_tuple': (3.5, 3.6), } + + is_flakey = [ + 'test_modulo_dict', + ] diff --git a/tests/datatypes/test_complex.py b/tests/datatypes/test_complex.py index 4517d28ca4..4bdc6fa2fc 100644 --- a/tests/datatypes/test_complex.py +++ b/tests/datatypes/test_complex.py @@ -60,6 +60,9 @@ class BinaryComplexOperationTests(BinaryOperationTestCase, TranspileTestCase): } not_implemented = [ + ] + + is_flakey = [ 'test_power_complex', 'test_power_float', ] From 745df42a05ba9785139f20979fd8a1ecb1caee50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 29 May 2017 06:39:33 -0400 Subject: [PATCH 23/25] Remove debug prints --- tests/utils.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index 0e386b87f9..3bbd31e39c 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -591,28 +591,19 @@ def _is_flakey(self): return self._testMethodName in getattr(self, "is_flakey", []) def _is_not_implemented(self): - _debug = True method_name = self._testMethodName if method_name in getattr(self, 'not_implemented', []): - if _debug: - print('%s - _is_not_implemented: not_implemented' % method_name) return True if self._is_flakey(): - if _debug: - print('%s - _is_not_implemented: is_flakey' % method_name) return True not_implemented_versions = getattr(self, 'not_implemented_versions', {}) if method_name in not_implemented_versions: py_version = float("%s.%s" % (sys.version_info.major, sys.version_info.minor)) if py_version in not_implemented_versions[method_name]: - if _debug: - print('%s - _is_not_implemented: not_implemented_versions [%s]' % (method_name, py_version)) return True - if _debug: - print('%s - _is_not_implemented: NOPE' % method_name) return False def run(self, result=None): From e40dc7c1e5cc04ea558a451f90c756e79a0cb4be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 29 May 2017 16:13:08 -0400 Subject: [PATCH 24/25] =?UTF-8?q?Clean=20up=20empty=20lines=20in=20?= =?UTF-8?q?=E2=80=98not=5Fimplemented=E2=80=99=20lists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/builtins/test_delattr.py | 16 -------------- tests/builtins/test_divmod.py | 16 -------------- tests/builtins/test_getattr.py | 16 -------------- tests/builtins/test_hasattr.py | 16 -------------- tests/builtins/test_map.py | 16 -------------- tests/datatypes/test_NoneType.py | 29 ------------------------- tests/datatypes/test_NotImplemented.py | 27 ----------------------- tests/datatypes/test_complex.py | 2 -- tests/datatypes/test_dict.py | 28 ------------------------ tests/datatypes/test_float.py | 20 ----------------- tests/datatypes/test_frozenset.py | 29 ------------------------- tests/datatypes/test_int.py | 20 ----------------- tests/datatypes/test_list.py | 30 -------------------------- tests/datatypes/test_set.py | 23 -------------------- tests/datatypes/test_str.py | 28 ------------------------ tests/datatypes/test_tuple.py | 29 ------------------------- 16 files changed, 345 deletions(-) diff --git a/tests/builtins/test_delattr.py b/tests/builtins/test_delattr.py index 7ccffa5c06..0c7386f3fa 100644 --- a/tests/builtins/test_delattr.py +++ b/tests/builtins/test_delattr.py @@ -58,21 +58,5 @@ class BuiltinDelattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa functions = ["delattr"] not_implemented = [ - - - 'test_class_str', - - - - - - - - - - - - - ] diff --git a/tests/builtins/test_divmod.py b/tests/builtins/test_divmod.py index b93a4854f6..27647fdfe9 100644 --- a/tests/builtins/test_divmod.py +++ b/tests/builtins/test_divmod.py @@ -34,35 +34,19 @@ class BuiltinTwoargDivmodFunctionTests(BuiltinTwoargFunctionTestCase, TranspileT not_implemented = [ 'test_bool_complex', - 'test_bytearray_complex', - 'test_bytes_complex', - 'test_class_complex', - - 'test_dict_complex', - 'test_float_complex', - 'test_frozenset_complex', - 'test_int_complex', - 'test_list_complex', - 'test_None_complex', - 'test_NotImplemented_complex', - 'test_range_complex', - 'test_set_complex', - 'test_slice_complex', - 'test_str_complex', - 'test_tuple_complex', ] diff --git a/tests/builtins/test_getattr.py b/tests/builtins/test_getattr.py index e0272d040e..9063521421 100644 --- a/tests/builtins/test_getattr.py +++ b/tests/builtins/test_getattr.py @@ -43,21 +43,5 @@ class BuiltinGetattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa functions = ["getattr"] not_implemented = [ - - - 'test_class_str', - - - - - - - - - - - - - ] diff --git a/tests/builtins/test_hasattr.py b/tests/builtins/test_hasattr.py index b2b30e20e6..7b15bc9249 100644 --- a/tests/builtins/test_hasattr.py +++ b/tests/builtins/test_hasattr.py @@ -34,20 +34,4 @@ class BuiltinHasattrFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCa functions = ["hasattr"] not_implemented = [ - - - - - - - - - - - - - - - - ] diff --git a/tests/builtins/test_map.py b/tests/builtins/test_map.py index f01db4cdb4..663df13caf 100644 --- a/tests/builtins/test_map.py +++ b/tests/builtins/test_map.py @@ -35,36 +35,20 @@ class BuiltinMapFunctionTests(BuiltinTwoargFunctionTestCase, TranspileTestCase): not_implemented = [ 'test_bool_bytearray', - 'test_bytearray_bytearray', - 'test_bytes_bytearray', - 'test_class_bytearray', - 'test_complex_bytearray', - 'test_dict_bytearray', - 'test_float_bytearray', - 'test_frozenset_bytearray', - 'test_int_bytearray', - 'test_list_bytearray', - 'test_None_bytearray', - 'test_NotImplemented_bytearray', - 'test_range_bytearray', - 'test_set_bytearray', - 'test_slice_bytearray', - 'test_str_bytearray', - 'test_tuple_bytearray', ] diff --git a/tests/datatypes/test_NoneType.py b/tests/datatypes/test_NoneType.py index 80fcb0c081..0aeba06e32 100644 --- a/tests/datatypes/test_NoneType.py +++ b/tests/datatypes/test_NoneType.py @@ -29,29 +29,10 @@ class BinaryNoneTypeOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'None' not_implemented = [ - - - - - - - - - - - 'test_modulo_complex', 'test_multiply_bytes', 'test_multiply_bytearray', - - - - - - - - ] @@ -59,10 +40,6 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) data_type = 'None' not_implemented = [ - - - - 'test_modulo_complex', 'test_multiply_bytes', @@ -70,10 +47,4 @@ class InplaceNoneTypeOperationTests(InplaceOperationTestCase, TranspileTestCase) 'test_multiply_list', 'test_multiply_str', 'test_multiply_tuple', - - - - - - ] diff --git a/tests/datatypes/test_NotImplemented.py b/tests/datatypes/test_NotImplemented.py index 82899328fc..0d3cf5a4f6 100644 --- a/tests/datatypes/test_NotImplemented.py +++ b/tests/datatypes/test_NotImplemented.py @@ -17,28 +17,11 @@ class BinaryNotImplementedOperationTests(BinaryOperationTestCase, TranspileTestC data_type = 'NotImplemented' not_implemented = [ - - - - - - - - - - 'test_modulo_complex', 'test_multiply_bytes', 'test_multiply_bytearray', - - - - - - - ] @@ -46,14 +29,11 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes data_type = 'NotImplemented' not_implemented = [ - - 'test_eq_bytearray', 'test_eq_class', 'test_eq_complex', 'test_eq_frozenset', - 'test_ge_bytearray', 'test_ge_class', 'test_ge_complex', @@ -69,7 +49,6 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_le_complex', 'test_le_frozenset', - 'test_lt_bytearray', 'test_lt_class', 'test_lt_complex', @@ -88,15 +67,9 @@ class InplaceNotImplementedOperationTests(InplaceOperationTestCase, TranspileTes 'test_ne_complex', 'test_ne_frozenset', - - - 'test_subscr_bytearray', 'test_subscr_bytes', 'test_subscr_class', 'test_subscr_complex', 'test_subscr_frozenset', - - - ] diff --git a/tests/datatypes/test_complex.py b/tests/datatypes/test_complex.py index 4bdc6fa2fc..cfdc30f4a0 100644 --- a/tests/datatypes/test_complex.py +++ b/tests/datatypes/test_complex.py @@ -243,7 +243,6 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_ne_str', 'test_ne_tuple', - 'test_power_bool', 'test_power_complex', 'test_power_float', @@ -281,5 +280,4 @@ class InplaceComplexOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_true_divide_float', 'test_true_divide_int', 'test_true_divide_none', - ] diff --git a/tests/datatypes/test_dict.py b/tests/datatypes/test_dict.py index 12b343d706..201eed7c10 100644 --- a/tests/datatypes/test_dict.py +++ b/tests/datatypes/test_dict.py @@ -305,31 +305,14 @@ class BinaryDictOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'dict' not_implemented = [ - - - - - - - - - - 'test_modulo_complex', 'test_multiply_bytearray', - - - - 'test_subscr_bytearray', 'test_subscr_class', 'test_subscr_complex', 'test_subscr_slice', - - - ] @@ -337,16 +320,5 @@ class InplaceDictOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'dict' not_implemented = [ - - - - 'test_modulo_complex', - - - - - - - ] diff --git a/tests/datatypes/test_float.py b/tests/datatypes/test_float.py index c37ff4db5c..96088943dd 100644 --- a/tests/datatypes/test_float.py +++ b/tests/datatypes/test_float.py @@ -107,16 +107,6 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'float' not_implemented = [ - - - - - - - - - - 'test_modulo_complex', 'test_multiply_bytearray', @@ -127,12 +117,9 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_multiply_NotImplemented', 'test_multiply_range', - - 'test_power_complex', 'test_power_float', - 'test_subscr_bool', 'test_subscr_bytearray', 'test_subscr_bytes', @@ -154,7 +141,6 @@ class BinaryFloatOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subtract_complex', 'test_true_divide_complex', - ] @@ -164,9 +150,6 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_complex', - - - 'test_modulo_complex', 'test_multiply_bytearray', @@ -180,13 +163,10 @@ class InplaceFloatOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_str', 'test_multiply_tuple', - 'test_power_complex', 'test_power_float', - 'test_subtract_complex', 'test_true_divide_complex', - ] diff --git a/tests/datatypes/test_frozenset.py b/tests/datatypes/test_frozenset.py index 7336fa35e5..da8ec3ba88 100644 --- a/tests/datatypes/test_frozenset.py +++ b/tests/datatypes/test_frozenset.py @@ -329,23 +329,8 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'frozenset' not_implemented = [ - - - - - - - - - - 'test_modulo_complex', - - - - - 'test_subscr_bool', 'test_subscr_bytearray', 'test_subscr_bytes', @@ -363,9 +348,6 @@ class BinaryFrozensetOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_subscr_slice', 'test_subscr_str', 'test_subscr_tuple', - - - ] @@ -373,16 +355,5 @@ class InplaceFrozensetOperationTests(InplaceOperationTestCase, TranspileTestCase data_type = 'frozenset' not_implemented = [ - - - - 'test_modulo_complex', - - - - - - - ] diff --git a/tests/datatypes/test_int.py b/tests/datatypes/test_int.py index 8e8f723456..425d156486 100644 --- a/tests/datatypes/test_int.py +++ b/tests/datatypes/test_int.py @@ -37,30 +37,14 @@ class BinaryIntOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'int' not_implemented = [ - - - - - - - - - - 'test_modulo_complex', 'test_multiply_complex', - - 'test_power_complex', 'test_power_float', - - - 'test_true_divide_complex', - ] @@ -70,10 +54,8 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): not_implemented = [ 'test_add_complex', - 'test_floor_divide_float', - 'test_modulo_complex', 'test_modulo_float', @@ -85,7 +67,6 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_str', 'test_multiply_tuple', - 'test_power_complex', 'test_power_float', 'test_power_int', @@ -95,5 +76,4 @@ class InplaceIntOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_subtract_float', 'test_true_divide_complex', - ] diff --git a/tests/datatypes/test_list.py b/tests/datatypes/test_list.py index 0433a2a878..7a4fe87139 100644 --- a/tests/datatypes/test_list.py +++ b/tests/datatypes/test_list.py @@ -599,29 +599,9 @@ class BinaryListOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'list' not_implemented = [ - - - - - - - - - - - 'test_modulo_complex', - - - - - - 'test_subscr_bool', 'test_subscr_slice', - - - ] @@ -637,15 +617,5 @@ class InplaceListOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_add_set', 'test_add_str', - - - 'test_modulo_complex', - - - - - - - ] diff --git a/tests/datatypes/test_set.py b/tests/datatypes/test_set.py index 7faa38e645..a48a2c9537 100644 --- a/tests/datatypes/test_set.py +++ b/tests/datatypes/test_set.py @@ -360,25 +360,11 @@ class BinarySetOperationTests(BinaryOperationTestCase, TranspileTestCase): not_implemented = [ - - - - - - - 'test_modulo_complex', 'test_multiply_bytearray', 'test_multiply_bytes', - - - - - - - 'test_xor_frozenset', 'test_xor_set', ] @@ -388,17 +374,8 @@ class InplaceSetOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'set' not_implemented = [ - - - 'test_modulo_complex', - - - - - - 'test_xor_frozenset', 'test_xor_set', ] diff --git a/tests/datatypes/test_str.py b/tests/datatypes/test_str.py index 83c5b2919b..28274b977b 100644 --- a/tests/datatypes/test_str.py +++ b/tests/datatypes/test_str.py @@ -727,16 +727,6 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'str' not_implemented = [ - - - - - - - - - - 'test_modulo_bool', 'test_modulo_bytes', 'test_modulo_bytearray', @@ -755,16 +745,8 @@ class BinaryStrOperationTests(BinaryOperationTestCase, TranspileTestCase): 'test_modulo_str', 'test_modulo_tuple', - - - - - 'test_subscr_bool', 'test_subscr_slice', - - - ] @@ -772,9 +754,6 @@ class InplaceStrOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'str' not_implemented = [ - - - 'test_modulo_bool', 'test_modulo_bytes', 'test_modulo_bytearray', @@ -792,11 +771,4 @@ class InplaceStrOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_modulo_set', 'test_modulo_str', 'test_modulo_tuple', - - - - - - - ] diff --git a/tests/datatypes/test_tuple.py b/tests/datatypes/test_tuple.py index a2ffc1c3e8..bf12a62cd0 100644 --- a/tests/datatypes/test_tuple.py +++ b/tests/datatypes/test_tuple.py @@ -270,29 +270,9 @@ class BinaryTupleOperationTests(BinaryOperationTestCase, TranspileTestCase): data_type = 'tuple' not_implemented = [ - - - - - - - - - - - 'test_modulo_complex', - - - - - - 'test_subscr_bool', 'test_subscr_slice', - - - ] @@ -300,9 +280,6 @@ class InplaceTupleOperationTests(InplaceOperationTestCase, TranspileTestCase): data_type = 'tuple' not_implemented = [ - - - 'test_modulo_complex', 'test_multiply_bytearray', @@ -320,10 +297,4 @@ class InplaceTupleOperationTests(InplaceOperationTestCase, TranspileTestCase): 'test_multiply_set', 'test_multiply_str', 'test_multiply_tuple', - - - - - - ] From f8b8d3c2c5fb6f19450472d2412992d32da934de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pamela=20McA=E2=80=99Nulty?= Date: Mon, 29 May 2017 16:20:12 -0400 Subject: [PATCH 25/25] Pre-PR preparations --- tests/utils.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index 3bbd31e39c..900b3647d0 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -591,11 +591,21 @@ def _is_flakey(self): return self._testMethodName in getattr(self, "is_flakey", []) def _is_not_implemented(self): + ''' + A test is expected to fail if: + (a) Its name can be found in the test case's 'not_implemented' list + (b) Its name can be found in the test case's 'is_flakey' list + (c) Its name can be found in the test case's + 'not_implemented_versions' dictionary _and_ the current + python version is in the dict entry's list + :return: True if test is expected to fail + ''' method_name = self._testMethodName if method_name in getattr(self, 'not_implemented', []): return True if self._is_flakey(): + # -- Flakey tests sometimes fail, sometimes pass return True not_implemented_versions = getattr(self, 'not_implemented_versions', {}) @@ -619,7 +629,7 @@ def run(self, result=None): def wrapper(*args, **kwargs): if self._is_flakey(): - raise Exception("Flakey test that sometimes passes and sometimes fails") + raise Exception("Flakey test that sometimes fails and sometimes passes") return test_method(*args, **kwargs) wrapper.__unittest_expecting_failure__ = True