mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
run-tests: avoid calculating _testdir again
Differential Revision: https://phab.mercurial-scm.org/D1574
This commit is contained in:
parent
ca0a21ad2a
commit
96e10ab37b
@ -979,8 +979,7 @@ class Test(unittest.TestCase):
|
||||
]
|
||||
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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user