Skip to content

Commit

Permalink
Merge pull request #144 from SublimeText/view-test-case-close
Browse files Browse the repository at this point in the history
Use view.close() to close view.
  • Loading branch information
randy3k committed Nov 13, 2018
2 parents c166a74 + db8524c commit 353821e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unittesting/helpers/view_test_case.py
Expand Up @@ -15,8 +15,7 @@ def setUp(self):
def tearDown(self):
if self.view:
self.view.set_scratch(True)
self.view.window().focus_view(self.view)
self.view.window().run_command("close_file")
self.view.close()

def _viewContents(self):
return self.view.substr(sublime.Region(0, self.view.size()))
Expand Down

0 comments on commit 353821e

Please sign in to comment.