Skip to content

Commit

Permalink
Merge branch 'issue_727'
Browse files Browse the repository at this point in the history
  • Loading branch information
DamnWidget committed Nov 28, 2017
2 parents 5bedb8e + 0182292 commit 88e60dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def is_enabled(self) -> bool:
"""Determine if this command is enabled or not
"""

return is_python(self.view)
return is_python(self.view, ignore_comments=True)

def run(self, edit: sublime.Edit) -> None:
"""Run the test or tests using the configured command
Expand Down Expand Up @@ -189,10 +189,10 @@ def _load_settings(self) -> None:
self.test_command = gs(self.view, 'test_command', DEFAULT_TEST_COMMAND)
self.test_params_dict = gs(self.view, 'test_params', TEST_PARAMS)
self.before_test = gs(self.view, 'test_before_command')
if type(self.before_test) is list:
if isinstance(self.before_test, list):
self.before_test = sep.join(self.before_test)
self.after_test = gs(self.view, 'test_after_command')
if type(self.after_test) is list:
if isinstance(self.after_test, list):
self.after_test = sep.join(self.after_test)
self.test_include_full_path = gs(
self.view, 'test_include_full_path', TEST_INCLUDE_FULL_PATH)
Expand Down

0 comments on commit 88e60dd

Please sign in to comment.