summaryrefslogtreecommitdiff
path: root/tests/debug_test.py
diff options
context:
space:
mode:
authorSergey Shepelev <temotor@gmail.com>2014-04-24 17:51:27 +0400
committerSergey Shepelev <temotor@gmail.com>2014-04-24 18:11:37 +0400
commitcbd404d56e231ea5419f07795a12d7082dd70ec4 (patch)
tree7ad24a0f80e064b94108bb38b8c4a8a3eebafb44 /tests/debug_test.py
parentc467ded4a6e777518cd7a3888149510e3b31d334 (diff)
downloadeventlet-cbd404d56e231ea5419f07795a12d7082dd70ec4.tar.gz
python3 compatibility
- __next__ for iterator interface - six.next() to get next item - list(dict.keys()) - popen2.popen4 -> subprocess - s2b -> b"..." literals - deprecated assertEquals -> assertEqual - hub_test test_fork using run_python - 1L -> 1 long literal - many PEP-8 fixes
Diffstat (limited to 'tests/debug_test.py')
-rw-r--r--tests/debug_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/debug_test.py b/tests/debug_test.py
index e509c65..da6d7ab 100644
--- a/tests/debug_test.py
+++ b/tests/debug_test.py
@@ -3,7 +3,7 @@ from unittest import TestCase
from eventlet import debug
from eventlet.support import six
-from tests import LimitedTestCase, main, s2b
+from tests import LimitedTestCase, main
import eventlet
@@ -113,7 +113,7 @@ class TestDebug(LimitedTestCase):
try:
gt = eventlet.spawn(hurl, client_2)
eventlet.sleep(0)
- client.send(s2b(' '))
+ client.send(b' ')
eventlet.sleep(0)
# allow the "hurl" greenlet to trigger the KeyError
# not sure why the extra context switch is needed
@@ -124,7 +124,7 @@ class TestDebug(LimitedTestCase):
debug.hub_exceptions(False)
# look for the KeyError exception in the traceback
self.assert_('KeyError: 1' in fake.getvalue(),
- "Traceback not in:\n" + fake.getvalue())
+ "Traceback not in:\n" + fake.getvalue())
if __name__ == "__main__":
main()