diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-11-28 20:58:41 -0800 |
|---|---|---|
| committer | Jon Dufresne <jon.dufresne@gmail.com> | 2017-12-01 22:50:16 -0800 |
| commit | 699be52e8b8a08e04e3486b73f748a7e489b35f2 (patch) | |
| tree | c23e08b4583b529fe96baaae728a64c47fda6db4 /tests/test_connection.py | |
| parent | a51160317c680662c52e4a1a6b4d11beae37f205 (diff) | |
| download | psycopg2-699be52e8b8a08e04e3486b73f748a7e489b35f2.tar.gz | |
Remove unnecessary script_to_py3; make scripts compatible instead
Part of the work towards moving tests out of the installed package.
Diffstat (limited to 'tests/test_connection.py')
| -rwxr-xr-x | tests/test_connection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_connection.py b/tests/test_connection.py index f13df18..369c204 100755 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -35,7 +35,7 @@ import psycopg2.errorcodes from psycopg2 import extensions as ext from testutils import ( - script_to_py3, unittest, decorate_all_tests, skip_if_no_superuser, + unittest, decorate_all_tests, skip_if_no_superuser, skip_before_postgres, skip_after_postgres, skip_before_libpq, ConnectingTestCase, skip_if_tpc_disabled, skip_if_windows, slow) @@ -1566,7 +1566,7 @@ while True: cur.execute(%(query)r, ("Hello, world!",)) """ % {'dsn': dsn, 'query': query}) - proc = sp.Popen([sys.executable, '-c', script_to_py3(script)], + proc = sp.Popen([sys.executable, '-c', script], stdout=sp.PIPE, stderr=sp.PIPE) (out, err) = proc.communicate() self.assertNotEqual(proc.returncode, 0) |
