summaryrefslogtreecommitdiff
path: root/tests/test__greenness.py
diff options
context:
space:
mode:
authoramajorek <devnull@localhost>2010-03-09 08:45:37 -0500
committeramajorek <devnull@localhost>2010-03-09 08:45:37 -0500
commit37e992ceeea780f77674ef303d2d248b5db82c65 (patch)
treecb81d746c0b7176d92ec5e226761932a578e73b5 /tests/test__greenness.py
parentfcafbbf322c3c38079bf05ab21db0b7a3139e867 (diff)
downloadeventlet-37e992ceeea780f77674ef303d2d248b5db82c65.tar.gz
py3k - corrections for deprecation warnings reported by python2.6 -3.
- integer division - repr instead of ` Added __hash__ to speedy Proxy funtions - 3.x requires __hash__ if __eq__ is defined. Found problem with comparing two proxy objects.
Diffstat (limited to 'tests/test__greenness.py')
-rw-r--r--tests/test__greenness.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test__greenness.py b/tests/test__greenness.py
index 65ef8b4..27f507d 100644
--- a/tests/test__greenness.py
+++ b/tests/test__greenness.py
@@ -40,7 +40,7 @@ class TestGreenness(unittest.TestCase):
urllib2.urlopen('http://127.0.0.1:%s' % self.port)
assert False, 'should not get there'
except urllib2.HTTPError, ex:
- assert ex.code == 501, `ex`
+ assert ex.code == 501, repr(ex)
self.assertEqual(self.server.request_count, 1)
if __name__ == '__main__':