rlee287 / pyautoupdate

An auto-update API for Python programs. ARCHIVED: The update mechanism here contains no guarantees about code integrity. You may want to look at TUF (The Update Framework) instead.
GNU Lesser General Public License v2.1
14 stars 2 forks source link

Fix timeout errors with busyloop in tests #28

Closed rlee287 closed 7 years ago

rlee287 commented 7 years ago

Bug Report

Python version: All (confirmed on Travis)

Operating System: All (Travis+local Windows test)

Description of the problem: launch.process_code_running does not accurately reflect user code status

Instructions to reliably reproduce the problem: Run tests (hangs at test_terminate_running)

Possible Resolutions to Issues: Use a multiprocessing.Event instead of simple boolean

rlee287 commented 7 years ago

Fixed by using multiprocessing.Event instead of normal boolean.

This guarantees proper synchronzation of variables.