Skip to content

Commit

Permalink
Output handle can be null, so account for that
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrylu committed Apr 8, 2021
1 parent 703b3fb commit 63607a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ def test_output(system):
system.output = OUTPUTTYPE.AUTODETECT

def test_output_handle(initialized_system):
assert initialized_system.output_handle > 0
if initialized_system.output_handle:
assert initialized_system.output_handle > 0

def test_get_plugin_handle(system):
assert system.get_plugin_handle(PLUGINTYPE.CODEC, 0) > 0
Expand Down

0 comments on commit 63607a9

Please sign in to comment.