]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix twisted version check.
authorBen Darnell <ben@bendarnell.com>
Sat, 2 Mar 2013 19:55:10 +0000 (14:55 -0500)
committerBen Darnell <ben@bendarnell.com>
Sat, 2 Mar 2013 19:55:10 +0000 (14:55 -0500)
tornado/test/netutil_test.py

index ca594c0967cec2bccaac03f3d418866b42fd12c8..53c84c2b95b8ec4ac45a6b0114dbeda318f18705 100644 (file)
@@ -65,7 +65,7 @@ class CaresResolverTest(AsyncTestCase, _ResolverTestMixin):
 
 
 @unittest.skipIf(twisted is None, "twisted module not present")
-@unittest.skipIf(twisted.__version__ < "12.1", "old version of twisted")
+@unittest.skipIf(getattr(twisted, '__version__', '0.0') < "12.1", "old version of twisted")
 class TwistedResolverTest(AsyncTestCase, _ResolverTestMixin):
     def setUp(self):
         super(TwistedResolverTest, self).setUp()