comparison tests/run-tests.py @ 35091:6a8e85702121

run-test: use byte for 'common-pattern.py' path This is required for Python 3.
author Boris Feld <boris.feld@octobus.net>
date Sun, 19 Nov 2017 04:10:55 +0100
parents 4fb489a998c9
children 1ac4c0887de4
comparison
equal deleted inserted replaced
35090:79cbf5cc4fb8 35091:6a8e85702121
967 (br'\bHG_TXNID=TXN:[a-f0-9]{40}\b', br'HG_TXNID=TXN:$ID$'), 967 (br'\bHG_TXNID=TXN:[a-f0-9]{40}\b', br'HG_TXNID=TXN:$ID$'),
968 ] 968 ]
969 r.append((self._escapepath(self._testtmp), b'$TESTTMP')) 969 r.append((self._escapepath(self._testtmp), b'$TESTTMP'))
970 970
971 testdir = os.path.dirname(self.path) 971 testdir = os.path.dirname(self.path)
972 replacementfile = os.path.join(testdir, 'common-pattern.py') 972 replacementfile = os.path.join(testdir, b'common-pattern.py')
973 973
974 if os.path.exists(replacementfile): 974 if os.path.exists(replacementfile):
975 data = {} 975 data = {}
976 execfile(replacementfile, data) 976 execfile(replacementfile, data)
977 r.extend(data.get('substitutions', ())) 977 r.extend(data.get('substitutions', ()))