Commit 32cf97d7 authored by John Chilton's avatar John Chilton
Browse files

Type fixes for lazy_process.py

parent 7c34dcab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ class LazyProcess:
        with self.thread_lock:
            self.allow_process_request = False
        if self.running:
            assert self.process  # tell type checker it can not be None if self.running
            self.process.terminate()
            time.sleep(.01)
            if self.running:
+0 −2
Original line number Diff line number Diff line
@@ -32,8 +32,6 @@ check_untyped_defs = False
check_untyped_defs = False
[mypy-galaxy_test.base.ssh_util]
check_untyped_defs = False
[mypy-galaxy.util.lazy_process]
check_untyped_defs = False
[mypy-galaxy.util.heartbeat]
check_untyped_defs = False
[mypy-galaxy.tools.bundled.stats.aggregate_scores_in_intervals]
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ def test_lazy_process():
    lazy_process.start_process()
    while not os.path.exists(t.name):
        time.sleep(.01)
    assert lazy_process.process
    assert lazy_process.process.poll() is None
    lazy_process.shutdown()
    ret_val = None