summaryrefslogtreecommitdiff
path: root/tests/test_notify.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-11-11 01:39:46 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-11-11 10:39:35 +0000
commit11c021cb21f7dc33d0232b425d127023d19b1a14 (patch)
tree3a018c8c23433cab9e94b4311537a884a638d197 /tests/test_notify.py
parent92ee893f0fcd3fb49ec41ad384cd7ff4b74d294f (diff)
downloadpsycopg2-11c021cb21f7dc33d0232b425d127023d19b1a14.tar.gz
Fixed tests to run on Windows.
Diffstat (limited to 'tests/test_notify.py')
-rwxr-xr-xtests/test_notify.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_notify.py b/tests/test_notify.py
index 83c1061..8dd8c70 100755
--- a/tests/test_notify.py
+++ b/tests/test_notify.py
@@ -87,7 +87,8 @@ conn.close()
pids[name] = int(self.notify(name).communicate()[0])
self.assertEqual(0, len(self.conn.notifies))
- self.assertEqual(extensions.POLL_OK, self.conn.poll())
+ for i in range(10):
+ self.assertEqual(extensions.POLL_OK, self.conn.poll())
self.assertEqual(3, len(self.conn.notifies))
names = dict.fromkeys(['foo', 'bar', 'baz'])