Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b6f0aa

Browse files
Remove duplicated tests.
There were duplicated methods with the same name and body.
1 parent d30829d commit 5b6f0aa

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

Lib/test/test_pyexpat.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ def test_specified_attributes(self):
4242
self.parser.specified_attributes = x
4343
self.assertIs(self.parser.specified_attributes, bool(x))
4444

45-
def test_specified_attributes(self):
46-
self.assertIs(self.parser.specified_attributes, False)
47-
for x in 0, 1, 2, 0:
48-
self.parser.specified_attributes = x
49-
self.assertIs(self.parser.specified_attributes, bool(x))
50-
5145
def test_invalid_attributes(self):
5246
with self.assertRaises(AttributeError):
5347
self.parser.returns_unicode = 1

Tools/clinic/clinic_test.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Licensed to the PSF under a contributor agreement.
44
#
55

6-
import builtins
76
import clinic
87
from clinic import DSLParser
98
import collections
@@ -747,15 +746,6 @@ def test_function_not_at_column_0(self):
747746
Nested docstring here, goeth.
748747
""".strip(), function.docstring)
749748

750-
def test_parser_regression_special_character_in_parameter_column_of_docstring_first_line(self):
751-
function = self.parse_function("""
752-
module os
753-
os.stat
754-
path: str
755-
This/used to break Clinic!
756-
""")
757-
self.assertEqual("stat($module, /, path)\n--\n\nThis/used to break Clinic!", function.docstring)
758-
759749
def test_directive(self):
760750
c = FakeClinic()
761751
parser = DSLParser(c)

0 commit comments

Comments
 (0)