Skip to content

Commit fc66056

Browse files
committed
Fix test_copy: remove duplicated test
1 parent 0a57448 commit fc66056

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

Lib/test/test_copy.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,10 @@ def test_copy_dict(self):
134134
self.assertIsNot(y, x)
135135

136136
def test_copy_frozendict(self):
137-
x = frozendict(foo=1, bar=2)
138-
y = copy.copy(x)
139-
self.assertEqual(y, x)
140-
self.assertEqual(type(y), frozendict)
141-
self.assertIsNot(y, x)
137+
x = frozendict(x=1, y=2)
138+
self.assertIs(copy.copy(x), x)
142139
x = frozendict()
143-
y = copy.copy(x)
144-
self.assertEqual(y, x)
145-
self.assertEqual(type(y), frozendict)
146-
self.assertIsNot(y, x)
140+
self.assertIs(copy.copy(x), x)
147141

148142
def test_copy_set(self):
149143
x = {1, 2, 3}
@@ -161,12 +155,6 @@ def test_copy_frozenset(self):
161155
x = frozenset()
162156
self.assertIs(copy.copy(x), x)
163157

164-
def test_copy_frozendict(self):
165-
x = frozendict(x=1, y=2)
166-
self.assertIs(copy.copy(x), x)
167-
x = frozendict()
168-
self.assertIs(copy.copy(x), x)
169-
170158
def test_copy_bytearray(self):
171159
x = bytearray(b'abc')
172160
y = copy.copy(x)

0 commit comments

Comments
 (0)