]> granicus.if.org Git - python/commitdiff
Remove duplicated tests.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 24 Apr 2016 20:50:18 +0000 (23:50 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 24 Apr 2016 20:50:18 +0000 (23:50 +0300)
There were duplicated methods with the same name and body.

Lib/test/test_pyexpat.py
Tools/clinic/clinic_test.py

index 550aebf06658beac5d738b517146e50836d2f984..0b68bfa6fe08c174ec646a54dc323d41d9dac634 100644 (file)
@@ -42,12 +42,6 @@ class SetAttributeTest(unittest.TestCase):
             self.parser.specified_attributes = x
             self.assertIs(self.parser.specified_attributes, bool(x))
 
-    def test_specified_attributes(self):
-        self.assertIs(self.parser.specified_attributes, False)
-        for x in 0, 1, 2, 0:
-            self.parser.specified_attributes = x
-            self.assertIs(self.parser.specified_attributes, bool(x))
-
     def test_invalid_attributes(self):
         with self.assertRaises(AttributeError):
             self.parser.returns_unicode = 1
index cd21000c050c371791e74af5f82f5fed2409cda7..ac0640c66cd6b0a161be567df3f2fec63aaffd47 100644 (file)
@@ -3,7 +3,6 @@
 # Licensed to the PSF under a contributor agreement.
 #
 
-import builtins
 import clinic
 from clinic import DSLParser
 import collections
@@ -747,15 +746,6 @@ Not at column 0!
     Nested docstring here, goeth.
 """.strip(), function.docstring)
 
-    def test_parser_regression_special_character_in_parameter_column_of_docstring_first_line(self):
-        function = self.parse_function("""
-module os
-os.stat
-    path: str
-This/used to break Clinic!
-""")
-        self.assertEqual("stat($module, /, path)\n--\n\nThis/used to break Clinic!", function.docstring)
-
     def test_directive(self):
         c = FakeClinic()
         parser = DSLParser(c)