diff options
Diffstat (limited to 'dev-python/python-bibtex/files/python-bibtex-1.2.4-fix_tests.patch')
-rw-r--r-- | dev-python/python-bibtex/files/python-bibtex-1.2.4-fix_tests.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/python-bibtex/files/python-bibtex-1.2.4-fix_tests.patch b/dev-python/python-bibtex/files/python-bibtex-1.2.4-fix_tests.patch new file mode 100644 index 00000000000..f9816817b77 --- /dev/null +++ b/dev-python/python-bibtex/files/python-bibtex-1.2.4-fix_tests.patch @@ -0,0 +1,28 @@ +--- 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' % ( |