diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-12-03 18:47:19 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2017-12-10 10:55:58 -0800 |
commit | 389f6c08d9536060184bfd5c8ea2491a4a91c2fb (patch) | |
tree | f85e494ab9c681494616ec6bb9b9d01852c62f90 /tests/test_async.py | |
parent | c86e682153f4cb8d99e490b2af964f3f11e3489f (diff) | |
download | psycopg2-389f6c08d9536060184bfd5c8ea2491a4a91c2fb.tar.gz |
Avoid installing tests to site-packages
For library end users, there is no need to install tests alongside the
package itself. This keeps the tests available for development without
adding extra packages to user's site-packages directory. Reduces the
size of the installed package. Avoids accidental execution of test code
by an installed package.
Diffstat (limited to 'tests/test_async.py')
-rwxr-xr-x | tests/test_async.py | 5 |
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 |