|
Moin2.0 : IOError while testing with py.test
diff -r 979c2ee641ac MoinMoin/util/_tests/test_interwiki.py
--- a/MoinMoin/util/_tests/test_interwiki.py Sat Apr 27 14:48:32 2013 +0200
+++ b/MoinMoin/util/_tests/test_interwiki.py Wed May 08 02:06:27 2013 +0530
@@ -186,8 +186,9 @@
"""
Test a 'real' interwiki file.
"""
- abspath = __file__.rsplit('MoinMoin')[0]
- testfile = os.path.join(abspath, 'contrib', 'interwiki', 'intermap.txt')
+ abspath = __file__ .rsplit('2.0')[0]
+ testfile = os.path.join(abspath,'2.0','contrib', 'interwiki', 'intermap.txt')
+
testiwm = InterWikiMap.from_file(testfile)
assert 'MoinSrc' in testiwm.iwmap
|