Skip to content

Commit 18aca3c

Browse files
author
Thomas Grainger
committed
more linting
1 parent 55db096 commit 18aca3c

File tree

2 files changed

+729
-710
lines changed

2 files changed

+729
-710
lines changed

tests/test_apply.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
import unittest
7-
from io import StringIO
7+
88

99
class ApplyTestSuite(unittest.TestCase):
1010
"""Basic test cases."""
@@ -59,7 +59,13 @@ def test_diff_unified_patchutil(self):
5959
new_text = wtp.apply.apply_diff(diff, self.lao, use_patch=True)
6060
self.assertEqual(new_text, (self.tzu, None))
6161

62-
self.assertRaises(AssertionError, wtp.apply.apply_diff, diff, [''] + self.lao, use_patch=True)
62+
self.assertRaises(
63+
AssertionError,
64+
wtp.apply.apply_diff,
65+
diff,
66+
[''] + self.lao,
67+
use_patch=True,
68+
)
6369

6470
def test_diff_rcs(self):
6571
with open('tests/casefiles/diff-rcs.diff') as f:
@@ -78,10 +84,11 @@ def test_diff_ed(self):
7884
diff = next(wtp.parse_patch(diff_text))
7985

8086
new_text = wtp.apply.apply_diff(diff, self.lao)
81-
self.assertEqual(self.tzu,new_text)
87+
self.assertEqual(self.tzu, new_text)
8288

8389
new_text = wtp.apply.apply_diff(diff, self.lao, use_patch=True)
8490
self.assertEqual(new_text, (self.tzu, None))
8591

92+
8693
if __name__ == '__main__':
8794
unittest.main()

0 commit comments

Comments
 (0)