Debian Codegraph @

debian/patches/fix_testsuite.patch

raw
1 --- ./test/test_bridge.py.orig 2016-10-29 18:01:58.973264803 +0200
2 +++ ./test/test_bridge.py 2016-10-29 18:23:12.121334058 +0200
3 @@ -8,11 +8,12 @@
4 """Run bridge unit tests for cclib."""
5
6 import sys
7 +import os
8 import unittest
9
10
11 if __name__ == "__main__":
12
13 - sys.path.append("bridge")
14 + sys.path.append(os.path.dirname(__file__) + "/bridge")
15 from testopenbabel import *
16 unittest.main()
17 --- ./test/test_io.py.orig 2016-10-29 18:24:25.069338027 +0200
18 +++ ./test/test_io.py 2016-10-29 18:25:01.829340026 +0200
19 @@ -8,9 +8,10 @@
20 """Run writer unit tests for cclib."""
21
22 import sys
23 +import os
24 import unittest
25
26 -sys.path.append('io')
27 +sys.path.append(os.path.dirname(__file__) + "/io")
28 from testccio import *
29 from testfilewriter import *
30 from testxyzwriter import *
31 --- ./test/test_parser.py.orig 2016-10-29 18:25:29.477341530 +0200
32 +++ ./test/test_parser.py 2016-10-29 18:25:46.165342438 +0200
33 @@ -8,9 +8,10 @@
34 """Run parser unit tests for cclib."""
35
36 import sys
37 +import os
38 import unittest
39
40 -sys.path.append('parser')
41 +sys.path.append(os.path.dirname(__file__) + "/parser")
42 from testdata import *
43 from testlogfileparser import *
44 from testutils import *
45 --- ./test/test_method.py.orig 2016-10-29 18:26:12.897343892 +0200
46 +++ ./test/test_method.py 2016-10-29 18:26:30.017344823 +0200
47 @@ -8,12 +8,13 @@
48 """Run method unit tests for cclib."""
49
50 import sys
51 +import os
52 import unittest
53
54
55 if __name__ == "__main__":
56
57 - sys.path.append("method")
58 + sys.path.append(os.path.dirname(__file__) + "/method")
59 from testcda import *
60 from testmbo import *
61 from testnuclear import *