Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Update the environ shim to be compatible with Python 3.9 #98

Merged
merged 2 commits into from
Jul 14, 2021

Conversation

andni233
Copy link
Contributor

The os.putenv() and os.unsetenv() are always available starting in Python
3.9, removing the need for special handling in the os._Environ mapping:
python/cpython@b8d1262

To get the tests in working order I had to limit them to run with pytest<6.0. I have not investigated why the tests can not run with more recent pytest versions.

To my knowledge this is the only outstanding issue for Python 3.9 support. Fixes #89

The `os.putenv()` and `os.unsetenv()` are always available starting in Python
3.9, removing the need for special handling in the `os._Environ` mapping:
python/cpython@b8d1262

Update the environ shim to match.
@codecov-commenter
Copy link

codecov-commenter commented May 29, 2021

Codecov Report

Merging #98 (448a404) into master (388e194) will decrease coverage by 1.07%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #98      +/-   ##
==========================================
- Coverage   85.25%   84.17%   -1.08%     
==========================================
  Files           4        4              
  Lines         312      316       +4     
  Branches       30       31       +1     
==========================================
  Hits          266      266              
- Misses         36       39       +3     
- Partials       10       11       +1     
Flag Coverage Δ
linux 84.17% <20.00%> (-1.08%) ⬇️
py36 83.66% <20.00%> (-1.11%) ⬇️
py37 83.66% <20.00%> (-1.11%) ⬇️
py38 84.07% <20.00%> (-1.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tests/test_general.py 100.00% <ø> (ø)
pytest_parallel/__init__.py 77.97% <20.00%> (-1.40%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 388e194...448a404. Read the comment docs.

bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Jun 1, 2021
https://build.opensuse.org/request/show/896458
by user mcepl + dimstar_suse
- Add python39.patch which makes the package compatible with Python 3.9
  as well (gh#kevlened/pytest-parallel#98).
@kevlened kevlened merged commit 743bde8 into kevlened:master Jul 14, 2021
@kevlened
Copy link
Owner

Apologies for the delay on this

@ickc
Copy link

ickc commented Aug 10, 2021

@kevlened, is there anything else blocking for a new release? Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please support Python 3.9
4 participants