Commit f27f0c79 authored by Jason Madden's avatar Jason Madden

Fix test when python-future is not installed.

parent bebf6a48
......@@ -135,7 +135,13 @@ class TestMonkey(SubscriberCleanupMixin, unittest.TestCase):
and e.module_name == 'ssl')
def test_patch_queue(self):
import queue
try:
import queue
except ImportError:
# Python 2 called this Queue. Note that having
# python-future installed gives us a queue module on
# Python 2 as well.
queue = None
if not hasattr(queue, 'SimpleQueue'):
raise unittest.SkipTest("Needs SimpleQueue")
# pylint:disable=no-member
......
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