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

This commit is contained in:
Serhiy Storchaka 2013-01-11 22:19:07 +02:00
commit b4fb2e2aac
2 changed files with 21 additions and 12 deletions

View file

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