-
Notifications
You must be signed in to change notification settings - Fork 211
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
Add Python 3.11 and PyPy 3.9 to the testing and drop 3.6 #567
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,22 +4,22 @@ | |
# pre-commit autoupdate | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
exclude: '.*\.pth$' | ||
- id: debug-statements | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.10.1 | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.2.2 | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py36-plus] | ||
args: [--py37-plus] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If dropping 3.6, there's also the classifier and python_requires in setup.py. Plus mention in the PR title. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think also need to update few parts related to Python 3.6 if this PR is going to drop 3.6. https://github.com/pytest-dev/pytest-cov/blob/master/setup.py#L114 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done below. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's also mention the 3.6 drop in the PR title for visibility/transparency. |
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 5.0.4 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1556,6 +1556,8 @@ def test_foo(): | |
SCRIPT_SIMPLE_RESULT = '4 * 100%' | ||
|
||
|
||
@pytest.mark.skipif('tuple(int(x) for x in xdist.__version__.split(".")) >= (2, 5, 0)', | ||
reason="--boxed option was removed in version 2.5.0") | ||
@pytest.mark.skipif('sys.platform == "win32"') | ||
def test_dist_boxed(testdir): | ||
script = testdir.makepyfile(SCRIPT_SIMPLE) | ||
|
@@ -1916,6 +1918,7 @@ def find_labels(text, pattern): | |
|
||
|
||
@pytest.mark.skipif("coverage.version_info < (5, 0)") | ||
@pytest.mark.skipif("coverage.version_info > (6, 4)") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the reason for skipping coverage > 6.4? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Newer output adds lines for test setup and teardown. |
||
@xdist_params | ||
def test_contexts(pytester, testdir, opts): | ||
with open(os.path.join(os.path.dirname(__file__), "contextful.py")) as f: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be pypy 3.8 (3.7 was dropped but the lower bound seems to be 3.8 not 3.9) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are UPPER bounds, not lower bounds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it was lower bound (3.7) and upper bound (3.9). Wouldn't we use 3.9 only if it was upper bounds ?