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