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

This commit is contained in:
Serhiy Storchaka 2013-01-11 22:18:17 +02:00
parent 5e12bb728f
commit a3a01b6ac3
2 changed files with 21 additions and 12 deletions

View file

@ -58,6 +58,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: