We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f1714 commit c1c2bc1Copy full SHA for c1c2bc1
tests/test_apply.py
@@ -125,13 +125,8 @@ def test_diff_unified_patchutil(self):
125
new_text = _apply(self.lao, diff_text, use_patch=True)
126
self.assertEqual(new_text, (self.tzu, None))
127
128
- def _do_apply():
129
- return _apply([''] + self.lao, diff_text, use_patch=True)
130
-
131
- self.assertRaises(
132
- exceptions.ApplyException,
133
- _do_apply,
134
- )
+ with assert_raises(exceptions.ApplyException):
+ _apply([''] + self.lao, diff_text, use_patch=True)
135
136
def test_diff_rcs(self):
137
with open('tests/casefiles/diff-rcs.diff') as f:
0 commit comments