2
0
mirror of https://github.com/gentoo-mirror/gentoo.git synced 2026-01-30 00:05:48 +03:00
Files
gentoo/dev-python/python-bibtex/files/python-bibtex-1.2.4-fix_tests.patch
Repository QA checks a637bd65b7 2015-06-19 16:35:30 UTC
2015-06-19 12:38:33 -04:00

29 lines
861 B
Diff

--- testsuite.py
+++ testsuite.py
@@ -4,6 +4,7 @@
import sys, os
+ParserError = "ParserError"
def check_recode ():
try:
@@ -65,7 +66,7 @@
valid = result.readline ().strip ()
- if obtained != valid:
+ if eval(obtained) != eval(valid):
sys.stderr.write ('error: %s: line %d: unexpected result:\n' % (
filename, line))
sys.stderr.write ('error: %s: line %d: obtained %s\n' % (
@@ -117,7 +118,7 @@
valid = result.readline ().strip ()
- if obtained != valid:
+ if eval(obtained) != eval(valid):
sys.stderr.write ('error: %s: line %d: unexpected result:\n' % (
filename, line))
sys.stderr.write ('error: %s: line %d: obtained %s\n' % (