diff --git a/test/test_compilation/test_compilation.py b/test/test_compilation/test_compilation.py index 07a0857d..c46844d5 100644 --- a/test/test_compilation/test_compilation.py +++ b/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)