From: Tim Peters Date: Mon, 3 Feb 2003 22:28:41 +0000 (+0000) Subject: test_newobj_generic(): Use the global protocols vector instead of a X-Git-Tag: v2.3c1~2063 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5013bd9438be9b2faa8a70c72ef57bae1fe4a031;p=python test_newobj_generic(): Use the global protocols vector instead of a hardcoded list. --- diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 6c621e5386..0d2441adc5 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)