diff options
| author | Sergey Shepelev <temotor@gmail.com> | 2014-04-24 17:51:27 +0400 |
|---|---|---|
| committer | Sergey Shepelev <temotor@gmail.com> | 2014-04-24 18:11:37 +0400 |
| commit | cbd404d56e231ea5419f07795a12d7082dd70ec4 (patch) | |
| tree | 7ad24a0f80e064b94108bb38b8c4a8a3eebafb44 /tests/__init__.py | |
| parent | c467ded4a6e777518cd7a3888149510e3b31d334 (diff) | |
| download | eventlet-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/__init__.py')
| -rw-r--r-- | tests/__init__.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index 66eb5b0..2234f0d 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -22,11 +22,6 @@ from eventlet import tpool main = unittest.main -def s2b(s): - """portable way to convert string to bytes. In 3.x socket.send and recv require bytes""" - return s.encode() - - def skipped(func): """ Decorator that marks a function as skipped. Uses nose's SkipTest exception if installed. Without nose, this will count skipped tests as passing tests.""" |
