summaryrefslogtreecommitdiff
path: root/tests/test_green.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-12 16:45:21 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-21 04:02:13 +0000
commit31093a7a58462617bd4646c7a6613754d761b566 (patch)
tree959dd0546f1edbc58eae411256a3c001ffd2a916 /tests/test_green.py
parenta30e461038dba6439980175ca6bc546c96551814 (diff)
downloadpsycopg2-31093a7a58462617bd4646c7a6613754d761b566.tar.gz
Some light cleanup for Py3 conversion.
Either flagged as warning by python2.6 -3 or converted by 2to3.
Diffstat (limited to 'tests/test_green.py')
-rw-r--r--tests/test_green.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_green.py b/tests/test_green.py
index 04fbc1a..07ecdb7 100644
--- a/tests/test_green.py
+++ b/tests/test_green.py
@@ -63,7 +63,7 @@ class GreenTests(unittest.TestCase):
curs.fetchone()
# now try to do something that will fail in the callback
- psycopg2.extensions.set_wait_callback(lambda conn: 1/0)
+ psycopg2.extensions.set_wait_callback(lambda conn: 1//0)
self.assertRaises(ZeroDivisionError, curs.execute, "select 2")
# check that the connection is left in an usable state