summaryrefslogtreecommitdiff
path: root/tests/test_connection.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-06-15 17:39:00 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-06-15 17:39:00 +0100
commit7ae2cb5cd07c0e1b2d02cec1164faca87859af9b (patch)
tree1d944f03144189831162421b1cfb8e0d8902c3e2 /tests/test_connection.py
parent602c74faa662196f9c596fb67276c766c8dfdcbd (diff)
downloadpsycopg2-7ae2cb5cd07c0e1b2d02cec1164faca87859af9b.tar.gz
Don't force a valid return code for the test
Windows returns 22, Linux returns 1
Diffstat (limited to 'tests/test_connection.py')
-rwxr-xr-xtests/test_connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_connection.py b/tests/test_connection.py
index 3830324..d88e853 100755
--- a/tests/test_connection.py
+++ b/tests/test_connection.py
@@ -1568,7 +1568,7 @@ while True:
proc = sp.Popen([sys.executable, '-c', script_to_py3(script)],
stdout=sp.PIPE, stderr=sp.PIPE)
(out, err) = proc.communicate()
- self.assertEqual(1, proc.returncode)
+ self.assertNotEqual(proc.returncode, 0)
self.assert_(not err, err)