Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring mcerd module #87

Merged
merged 4 commits into from
Oct 13, 2020
Merged

Refactoring mcerd module #87

merged 4 commits into from
Oct 13, 2020

Conversation

jussiks
Copy link
Member

@jussiks jussiks commented Oct 11, 2020

A little bit of refactoring to make the module easier to test before actually doing anything about #84.

- Initial refactoring of mcerd module before attempting fix #84
- Removed name mangling (#72) (may still need to rethink which
  attributes should be public and which should be private)
- Moved MCERD.stop_process method to subprocess_utils, split the
  parameters given to TASKKILL (#19) and used subprocess.run instead of
  subprocess.call
- Added a FIXME for a rare bug caused by delete_unneeded_files method
- Cast the return value of Popen.poll to int when checking that it
  is a non-zero integer.
- Assertions made after exiting the Popen context manager in case the
  test expects a finished process.
…o mcerd_refactor

Someone has once managed to cause a merge conflict by forgetting to
pull changes they themselves made on another system...
@jussiks jussiks merged commit 0ec87e4 into master Oct 13, 2020
@jussiks jussiks deleted the mcerd_refactor branch October 13, 2020 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant