summaryrefslogtreecommitdiff
path: root/tests/testutils/python_repo.py
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-03-27 10:58:57 +0000
committerAngelos Evripiotis <angelos.evripiotis@gmail.com>2019-04-11 13:58:33 +0000
commit9a9b06a5b52ced084b447c0468617e963555e068 (patch)
treef587d2f5c5188db0d16dabedfe3ecc9f94857b76 /tests/testutils/python_repo.py
parent887461a584613c304064a636cbda8f4c863f35f9 (diff)
downloadbuildstream-9a9b06a5b52ced084b447c0468617e963555e068.tar.gz
tests: extract testutils.override_os_uname
Combine the very similar override_uname_arch() and override_uname_os() in a new helper function, to reduce duplication. Also use a 'try/finally' block to ensure that the original os.uname() is restored. This will make it simpler to adopt platform.uname() instead in later work.
Diffstat (limited to 'tests/testutils/python_repo.py')
0 files changed, 0 insertions, 0 deletions