a9993d
From e8b4aa764cb64fa8d87116f9e3f1340cba92503e Mon Sep 17 00:00:00 2001
a9993d
From: Carl George <carl@george.computer>
a9993d
Date: Thu, 4 Jun 2020 14:13:47 -0500
a9993d
Subject: [PATCH] Mark _test_external_close as expected failure
a9993d
a9993d
This is a known upstream issue that is resolved in 2.8.  The "fix" is a
a9993d
bigger divergence than is appropriate for CentOS.
a9993d
a9993d
https://github.com/psycopg/psycopg2/issues/927
a9993d
---
a9993d
 tests/test_cursor.py | 1 +
a9993d
 1 file changed, 1 insertion(+)
a9993d
a9993d
diff --git a/tests/test_cursor.py b/tests/test_cursor.py
a9993d
index d9dea0c5..c6f18677 100755
a9993d
--- a/tests/test_cursor.py
a9993d
+++ b/tests/test_cursor.py
a9993d
@@ -576,6 +576,7 @@ class CursorTests(ConnectingTestCase):
a9993d
         wait_func = psycopg2.extras.wait_select
a9993d
         self._test_external_close(control_conn, connect_func, wait_func)
a9993d
 
a9993d
+    @unittest.expectedFailure()
a9993d
     def _test_external_close(self, control_conn, connect_func, wait_func):
a9993d
         # The short sleep before using victim_conn the second time makes it
a9993d
         # much more likely to lose the race and see the bug. Repeating the
a9993d
-- 
a9993d
2.26.2
a9993d