Ignore spurious output in test with Python debug build

This commit is contained in:
Daniele Varrazzo 2017-06-17 03:20:09 +01:00
parent d72efd2fa8
commit 30d89da4fa

View File

@ -22,6 +22,7 @@
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
import re
import os
import sys
import time
@ -1569,6 +1570,8 @@ while True:
stdout=sp.PIPE, stderr=sp.PIPE)
(out, err) = proc.communicate()
self.assertNotEqual(proc.returncode, 0)
# Strip [NNN refs] from output
err = re.sub(br'\[[^\]]+\]', b'', err).strip()
self.assert_(not err, err)