Commit caceaa0d authored by Denis Bilenko's avatar Denis Bilenko

test_threading_local.py: fix 2.4 compatibility

parent 908c4adf
...@@ -127,5 +127,15 @@ class ThreadingLocalTest(unittest.TestCase): ...@@ -127,5 +127,15 @@ class ThreadingLocalTest(unittest.TestCase):
self.assertRaises(TypeError, local, 1) self.assertRaises(TypeError, local, 1)
try:
all
except NameError:
def all(iter):
for x in iter:
if not x:
return False
return True
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment