summaryrefslogtreecommitdiff
path: root/tests/test_async.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_async.py')
-rwxr-xr-xtests/test_async.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_async.py b/tests/test_async.py
index 6469a25..ce5e9b1 100755
--- a/tests/test_async.py
+++ b/tests/test_async.py
@@ -30,9 +30,8 @@ import psycopg2
from psycopg2 import extensions as ext
import time
-import StringIO
-from .testutils import ConnectingTestCase
+from .testutils import ConnectingTestCase, StringIO
class PollableStub(object):
@@ -241,7 +240,7 @@ class AsyncTests(ConnectingTestCase):
# copy should fail
self.assertRaises(psycopg2.ProgrammingError,
cur.copy_from,
- StringIO.StringIO("1\n3\n5\n\\.\n"), "table1")
+ StringIO("1\n3\n5\n\\.\n"), "table1")
def test_lobject_while_async(self):
# large objects should be prohibited