Skip to content

Cleanups in tests and in framework #3696

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

Merged
merged 2 commits into from
Jun 15, 2020
Merged

Conversation

mwichmann
Copy link
Collaborator

  • Some Py2/Py3 compat blocks were simplified to Py3 only
  • some sequences of define-cleaup-function + atexit.register were changed to use the decorator (this works if func needs to take no arguments)
  • Lightly update a bunch of docstrings in TestCmd, and reformat a few places, towards the style we're generally using now.
  • call_python() in TestCmdTest was modernized to use subprocess.run

Signed-off-by: Mats Wichmann [email protected]

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated CHANGES.txt (and read the README.rst)
  • I have updated the appropriate documentation

* Some Py2/Py3 compat blocks were simplified to Py3 only
* some sequences of define-cleaup-function + atexit.register
  were changed to use the decorator (this works if func needs to
  take no arguments)
* Lightly update a bunch of docstrings in TestCmd, and reformat
  a few places, towards the style we're generally using now.
* call_python() in TestCmdTests was modernized to use subprocess.run

Signed-off-by: Mats Wichmann <[email protected]>
Earlier change dropped PY3 version of code in cleanup -
read sys.stdin.buffer, not sys.stdin

Signed-off-by: Mats Wichmann <[email protected]>
@bdbaddog bdbaddog merged commit 1ab90a5 into SCons:master Jun 15, 2020
@mwichmann mwichmann deleted the test-cleanup branch June 16, 2020 12:29
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.

2 participants