Skip to content

Conversation

@frenzymadness
Copy link
Contributor

Python 3.10.0a4 has some differences and we are already building Python RPM packages with it so I'm bringing here the changes I need to do to make the tests pass with the latest Python 3.10.0a4. Tests still work for me in Python 3.9.

More explained in individual commits.

Newer Pythons stores annotations as strings and evaluate them later.
New argparse module uses "options" instead "optional arguments".

python/cpython@41b223d
@frenzymadness
Copy link
Contributor Author

Not sure if I have to fix the tests. On windows, there is an error unrelated to this change:

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\tmpvkn1o7qu\\tmpf87s_f5ntest_hist.sqlite'

and linter complains about stuff I haven't changed but I can definitely fix if needed.

pytest.skip(f"Module {module_name} is not available.")

output = pretty.pretty(getattr(module, "Null"))
nt.assert_equal(output, 'xxlimited.Null')
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a curious ask: This is not 'xxlimited_35.Null' on xxlimited_35, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly.

@frenzymadness
Copy link
Contributor Author

The change of test_oinspect is no longer needed because the postponed evaluation of type annotations has been postponed. For the rest, I'm gonna use PR #13080

@Carreau Carreau added this to the no action milestone Aug 27, 2021
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.

3 participants