File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments