mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
parent
ecfeb7f095
commit
70a6b49821
246 changed files with 926 additions and 962 deletions
|
@ -426,7 +426,7 @@ class TestBasicOps(unittest.TestCase):
|
|||
|
||||
def test_repr(self):
|
||||
if self.repr is not None:
|
||||
self.assertEqual(`self.set`, self.repr)
|
||||
self.assertEqual(repr(self.set), self.repr)
|
||||
|
||||
def test_length(self):
|
||||
self.assertEqual(len(self.set), self.length)
|
||||
|
@ -1076,7 +1076,7 @@ class TestCopying(unittest.TestCase):
|
|||
|
||||
def test_deep_copy(self):
|
||||
dup = copy.deepcopy(self.set)
|
||||
##print type(dup), `dup`
|
||||
##print type(dup), repr(dup)
|
||||
dup_list = list(dup); dup_list.sort()
|
||||
set_list = list(self.set); set_list.sort()
|
||||
self.assertEqual(len(dup_list), len(set_list))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue