editor: Stop using sub-tests.
- Sub-tests were hard to use because the traceback doesn't include the line number within the test method.
This commit is contained in:
parent
2c873cc914
commit
6bb8befb2b
1 changed files with 1 additions and 2 deletions
|
|
@ -65,8 +65,7 @@ class EditorTestCase(unittest.TestCase):
|
|||
self.editor.cursor_x, self.editor.cursor_y = cursor_position
|
||||
|
||||
def _assert_changes(self, changes):
|
||||
for index, change in enumerate(changes):
|
||||
# with self.subTest(index=index, change=change):
|
||||
for change in changes:
|
||||
method, expected_text, expected_cursor_position = change
|
||||
with contextlib.suppress(IndexError):
|
||||
method()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue