mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-05-04 23:23:42 +03:00
Ignore spurious output in test with Python debug build
This commit is contained in:
parent
d72efd2fa8
commit
30d89da4fa
|
@ -22,6 +22,7 @@
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
# License for more details.
|
# License for more details.
|
||||||
|
|
||||||
|
import re
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
@ -1569,6 +1570,8 @@ while True:
|
||||||
stdout=sp.PIPE, stderr=sp.PIPE)
|
stdout=sp.PIPE, stderr=sp.PIPE)
|
||||||
(out, err) = proc.communicate()
|
(out, err) = proc.communicate()
|
||||||
self.assertNotEqual(proc.returncode, 0)
|
self.assertNotEqual(proc.returncode, 0)
|
||||||
|
# Strip [NNN refs] from output
|
||||||
|
err = re.sub(br'\[[^\]]+\]', b'', err).strip()
|
||||||
self.assert_(not err, err)
|
self.assert_(not err, err)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user