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

bpo-42243: Use PyModule_Add*() in _sre iso. direct module dict manipulation #23101

Closed
wants to merge 3 commits into from

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Nov 2, 2020

Modules/_sre.c Outdated Show resolved Hide resolved
Modules/_sre.c Outdated Show resolved Hide resolved
@serhiy-storchaka
Copy link
Member

Just for the case, add tests that MAXREPEAT and MAXGROUPS > 0.

@erlend-aasland erlend-aasland marked this pull request as draft November 2, 2020 09:20
@erlend-aasland erlend-aasland marked this pull request as ready for review November 2, 2020 10:30
@erlend-aasland
Copy link
Contributor Author

erlend-aasland commented Nov 2, 2020

Just for the case, add tests that MAXREPEAT and MAXGROUPS > 0.

Would a simple assert() be sufficient, or did you mean adding a unit test?

@serhiy-storchaka
Copy link
Member

Would a simple assert() be sufficient, or did you mean adding a unit test?

I meant adding a test in Lib/test/test_re.py. If somebody will break this code in future it will get clearer test failure.

@erlend-aasland
Copy link
Contributor Author

Would a simple assert() be sufficient, or did you mean adding a unit test?

I meant adding a test in Lib/test/test_re.py. If somebody will break this code in future it will get clearer test failure.

Got it. Signedness test added in 8561628.

@erlend-aasland
Copy link
Contributor Author

@serhiy-storchaka are you ok with this PR as it stands?

@erlend-aasland
Copy link
Contributor Author

Closing, as this was incorporated in #23393

@erlend-aasland erlend-aasland deleted the bpo-42243/sre branch December 26, 2020 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants