Commit d3a3de6d authored by Denis Bilenko's avatar Denis Bilenko

fix pyflakes warning in test__select.py on PY3

Thanks to @fantix for original patch.
parent 9c58f456
import six
import sys import sys
import os import os
from gevent import select, socket from gevent import select, socket
...@@ -29,14 +30,11 @@ class TestSelectTypes(greentest.TestCase): ...@@ -29,14 +30,11 @@ class TestSelectTypes(greentest.TestCase):
sock = socket.socket() sock = socket.socket()
select.select([int(sock.fileno())], [], [], 0.001) select.select([int(sock.fileno())], [], [], 0.001)
try: if hasattr(six.builtins, 'long'):
long
except NameError:
pass
else:
def test_long(self): def test_long(self):
sock = socket.socket() sock = socket.socket()
select.select([long(sock.fileno())], [], [], 0.001) select.select(
[six.builtins.long(sock.fileno())], [], [], 0.001)
def test_string(self): def test_string(self):
self.switch_expected = False self.switch_expected = False
......
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