Issue #15539: Fix backup file creation in pindent.py on Windows

This commit is contained in:
Serhiy Storchaka 2013-01-11 22:16:15 +02:00
parent 8b41c2e259
commit dfae912d80
2 changed files with 23 additions and 12 deletions

View file

@ -57,6 +57,7 @@ class PindentTests(unittest.TestCase):
return '\n'.join(line.lstrip() for line in data.splitlines()) + '\n'
def test_selftest(self):
self.maxDiff = None
with temp_dir() as directory:
data_path = os.path.join(directory, '_test.py')
with open(self.script) as f: