Commits

Amaury Forgeot d'Arc committed 70241d6

Fix method used to find cjkencodings data files

  • Participants
  • Parent commits ff15485
  • Branches merge-2.7.2

Comments (0)

Files changed (1)

File lib-python/modified-2.7/test/test_multibytecodec_support.py

                             repr(csetch), repr(unich), exc.reason))
 
 def load_teststring(name):
-    dir = os.path.join(os.path.dirname(__file__), 'cjkencodings')
+    dir = test_support.findfile('cjkencodings')
     with open(os.path.join(dir, name + '.txt'), 'rb') as f:
         encoded = f.read()
     with open(os.path.join(dir, name + '-utf8.txt'), 'rb') as f: