diff options
author | Chandan Singh <chandan@chandansingh.net> | 2020-10-26 21:23:49 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-10-29 12:27:40 +0000 |
commit | 8fdab36c83aaf1872a39cc9f31db25a95b1240c1 (patch) | |
tree | d9bd6bb896b4e337396bfcdea1004320880c99bc /tests/cachekey/project/sources/patch1.expected | |
parent | 8616fc5b453003e1a56bb423706549dd3a80ad4b (diff) | |
download | buildstream-chandan/py39-platform.tar.gz |
testutils/platform: Refactor to be compatible with Python 3.9chandan/py39-platform
Starting from Python 3.9, it seems like the `_replace()` method no
longer works on `platform.uname_result` objects, that are returned by
`platform.uname()`. This causes some of our tests to fail on Python 3.9.
See https://bugs.python.org/issue42163 for upstream issue.
Fix it by slightly changing the way we override the values of the
`platform.uname()` function, such that it works on both Python 3.9 and
3.8 (and below).
Diffstat (limited to 'tests/cachekey/project/sources/patch1.expected')
0 files changed, 0 insertions, 0 deletions