mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
test_newobj_generic(): Use the global protocols vector instead of a
hardcoded list.
This commit is contained in:
parent
22e71711b3
commit
5013bd9438
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue