Show More
@@ -724,16 +724,19 b' class Test(unittest.TestCase):' | |||||
724 | (br'(?m)^(saved backup bundle to .*\.hg)( \(glob\))?$', |
|
724 | (br'(?m)^(saved backup bundle to .*\.hg)( \(glob\))?$', | |
725 | br'\1 (glob)'), |
|
725 | br'\1 (glob)'), | |
726 | ] |
|
726 | ] | |
|
727 | r.append((self._escapepath(self._testtmp), b'$TESTTMP')) | |||
727 |
|
728 | |||
|
729 | return r | |||
|
730 | ||||
|
731 | def _escapepath(self, p): | |||
728 | if os.name == 'nt': |
|
732 | if os.name == 'nt': | |
729 |
r |
|
733 | return ( | |
730 | (b''.join(c.isalpha() and b'[%s%s]' % (c.lower(), c.upper()) or |
|
734 | (b''.join(c.isalpha() and b'[%s%s]' % (c.lower(), c.upper()) or | |
731 | c in b'/\\' and br'[/\\]' or c.isdigit() and c or b'\\' + c |
|
735 | c in b'/\\' and br'[/\\]' or c.isdigit() and c or b'\\' + c | |
732 |
for c in |
|
736 | for c in p)) | |
|
737 | ) | |||
733 | else: |
|
738 | else: | |
734 | r.append((re.escape(self._testtmp), b'$TESTTMP')) |
|
739 | return re.escape(p) | |
735 |
|
||||
736 | return r |
|
|||
737 |
|
740 | |||
738 | def _getenv(self): |
|
741 | def _getenv(self): | |
739 | """Obtain environment variables to use during test execution.""" |
|
742 | """Obtain environment variables to use during test execution.""" |
General Comments 0
You need to be logged in to leave comments.
Login now