summaryrefslogtreecommitdiff
path: root/dev-python/python-bibtex/files/python-bibtex-1.2.4-fix_tests.patch
blob: f9816817b7777724a5bfcb68c5ac0d19ce203b9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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' % (