• Angelos Evripiotis's avatar
    tests: extract testutils.override_os_uname · 9a9b06a5
    Angelos Evripiotis authored
    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.
    9a9b06a5
Name
Last commit
Last update
.gitlab Loading commit data...
.gitlab-ci Loading commit data...
buildstream Loading commit data...
contrib Loading commit data...
doc Loading commit data...
man Loading commit data...
requirements Loading commit data...
tests Loading commit data...
.coveragerc Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.pylintrc Loading commit data...
BuildStream.doap Loading commit data...
CONTRIBUTING.rst Loading commit data...
COPYING Loading commit data...
MAINTAINERS Loading commit data...
MANIFEST.in Loading commit data...
NEWS Loading commit data...
README.rst Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...
versioneer.py Loading commit data...