diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-02-03 22:28:41 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-02-03 22:28:41 (GMT) |
commit | 5013bd9438be9b2faa8a70c72ef57bae1fe4a031 (patch) | |
tree | f207d2a80617c87fc18ee72500186bf07c105c61 /Lib/test/pickletester.py | |
parent | 22e71711b3abceb2d0dfca0f252e9c43b4ca23ad (diff) | |
download | cpython-5013bd9438be9b2faa8a70c72ef57bae1fe4a031.zip cpython-5013bd9438be9b2faa8a70c72ef57bae1fe4a031.tar.gz cpython-5013bd9438be9b2faa8a70c72ef57bae1fe4a031.tar.bz2 |
test_newobj_generic(): Use the global protocols vector instead of a
hardcoded list.
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r-- | Lib/test/pickletester.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 6c621e5..0d2441a 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -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) |