Skip to content

Commit

Permalink
support for if __name__ == __main__
Browse files Browse the repository at this point in the history
(cherry picked from commit e7edf5b)
  • Loading branch information
yimelia committed Mar 22, 2023
1 parent e17a441 commit aeda723
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airtest/cli/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def setUp(self):
dev.start_recording()
except:
traceback.print_exc()
# support for if __name__ == '__main__'
self.scope['__name__'] = '__main__'

def tearDown(self):
if self.args.log and self.args.recording:
Expand Down

0 comments on commit aeda723

Please sign in to comment.