Browse Source

[test] fix Data folder

pull/120/head
Oliverpool 9 years ago
parent
commit
5928b8e383
  1. 5
      test/test_compilation/test_compilation.py

5
test/test_compilation/test_compilation.py

@ -2,14 +2,13 @@
# pylint: disable=too-few-public-methods
from pkg_resources import resource_filename
import glob
import os
import subprocess
import unittest
from patacrep.encoding import open_read
import patacrep
from patacrep import __DATADIR__
from .. import dynamic # pylint: disable=unused-import
@ -101,7 +100,7 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
expected = expected.replace(
"@DATA_FOLDER@",
os.path.abspath(resource_filename(patacrep.__name__, 'data')),
__DATADIR__,
)
return super().assertMultiLineEqual(result, expected, msg)

Loading…
Cancel
Save