test_newobj_generic(): Use the global protocols vector instead of a
hardcoded list.
This commit is contained in:
parent
22e71711b3
commit
5013bd9438
@ -570,7 +570,7 @@ class AbstractPickleTests(unittest.TestCase):
|
||||
self.assertEqual(x.__dict__, y.__dict__)
|
||||
|
||||
def test_newobj_generic(self):
|
||||
for proto in [0, 1, 2]:
|
||||
for proto in protocols:
|
||||
for C in myclasses:
|
||||
B = C.__base__
|
||||
x = C(C.sample)
|
||||
|
Loading…
x
Reference in New Issue
Block a user