Skip to content
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

Drop Python 3.9 support #159

Merged
merged 6 commits into from
Apr 15, 2024
Merged

Drop Python 3.9 support #159

merged 6 commits into from
Apr 15, 2024

Conversation

SimonHeybrock
Copy link
Member

No description provided.

@SimonHeybrock
Copy link
Member Author

@jl-wynen Any idea why the serialization tests are failing here? They were disabled for Python 3.9, but are broken now for 3.10.

@SimonHeybrock
Copy link
Member Author

@jl-wynen Any idea why the serialization tests are failing here? They were disabled for Python 3.9, but are broken now for 3.10.

I fixed it, but I was wondering if this was expected.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to keep the pytest skip mark on the tests? I think it can be removed.

@@ -98,55 +98,55 @@ def node_sort_key(node: dict[str, Any]) -> str:
'id': '1',
'label': 'to_string',
'kind': 'function',
'function': 'json_test.to_string',
'function': 'tests.serialize.json_test.to_string',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I didn't expect this. It is caused by --import-mode=importlib in pytest that was added in this PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... but is this change fine?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say so. This is a particular detail of how pytest works. In a normal Python process, it should always use the full module path.

@SimonHeybrock SimonHeybrock merged commit eaf9b1e into main Apr 15, 2024
5 checks passed
@SimonHeybrock SimonHeybrock deleted the drop-py39 branch April 15, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants