diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -979,8 +979,7 @@ ] r.append((self._escapepath(self._testtmp), b'$TESTTMP')) - testdir = os.path.dirname(self.path) - replacementfile = os.path.join(testdir, b'common-pattern.py') + replacementfile = os.path.join(self._testdir, b'common-pattern.py') if os.path.exists(replacementfile): data = {}