Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Jul 19, 2019
1 parent f65d2c9 commit 1e78937
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
background_queue_worker=0,
background_event_worker=0)

try:
if sys.argv[1] == 'debug':
logging.basicConfig(level=logging.DEBUG)
except:
pass

sys.path.append(Path().absolute().parent.as_posix())


Expand Down Expand Up @@ -145,6 +139,11 @@ def test_background_interval_worker_mp(self):
task_supervisor.set_mp_pool(pool_size=20, reserve_normal=5, reserve_high=5)

if __name__ == '__main__':
try:
if sys.argv[1] == 'debug':
logging.basicConfig(level=logging.DEBUG)
except:
pass
task_supervisor.start()
task_supervisor.poll_delay = 0.01
test_suite = unittest.TestLoader().loadTestsFromTestCase(Test)
Expand Down

0 comments on commit 1e78937

Please sign in to comment.