diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-12-29 12:10:21 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-12-31 03:18:27 +0100 |
| commit | 0a4eeb4e13470c5b296214530983c9aad6d033ac (patch) | |
| tree | 6af857f401b4e8666b005c2cda756834d5631637 /tests/test_notify.py | |
| parent | b78ff4a2737a407df13bfc5eae28537582ed2ee1 (diff) | |
| download | psycopg2-0a4eeb4e13470c5b296214530983c9aad6d033ac.tar.gz | |
Fixed notification tests to run on Py3.
Call 2to3 on the dynamically generated scripts.
Diffstat (limited to 'tests/test_notify.py')
| -rwxr-xr-x | tests/test_notify.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_notify.py b/tests/test_notify.py index a15aad6..683d21d 100755 --- a/tests/test_notify.py +++ b/tests/test_notify.py @@ -4,6 +4,7 @@ from testutils import unittest import psycopg2 from psycopg2 import extensions from testconfig import dsn +from testutils import script_to_py3 import sys import time @@ -52,7 +53,7 @@ conn.close() """ % { 'dsn': dsn, 'sec': sec, 'name': name, 'payload': payload}) - return Popen([sys.executable, '-c', script], stdout=PIPE) + return Popen([sys.executable, '-c', script_to_py3(script)], stdout=PIPE) def test_notifies_received_on_poll(self): self.autocommit(self.conn) |
