FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-43988: Use check disallow instantiation helper by erlend-aasland · Pull Request #26392 · python/cpython · GitHub

/ cpython Public

bpo-43988: Use check disallow instantiation helper - #26392

Merged
vstinner merged 6 commits into
python:mainfrom
erlend-aasland:use-check-disallow-inst
May 27, 2021
Merged

bpo-43988: Use check disallow instantiation helper#26392
vstinner merged 6 commits into
python:mainfrom
erlend-aasland:use-check-disallow-inst

Conversation

erlend-aasland commented May 26, 2021
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor
  • Use test.support.check_disallow_instantiation
  • Fix exception message regex for builtins

https://bugs.python.org/issue43988

erlend-aasland changed the title bpo-43988: Use check disallow instantiation bpo-43988: Use check disallow instantiation helper May 26, 2021
erlend-aasland requested a review from vstinner May 26, 2021 22:45

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I suggest to avoid tp = ... and then use tp, since "tp" name doesn't help: use directly "...". I wrote some examples.

Comment thread Lib/test/support/__init__.py Outdated
Comment thread Lib/test/test_curses.py Outdated
Comment thread Lib/test/test_dbm_gnu.py Outdated
Comment thread Lib/test/test_re.py Outdated
Comment thread Lib/test/test_select.py Outdated
vstinner merged commit fbff538 into python:main May 27, 2021

Copy link
Copy Markdown
Member

Merged, thanks. This helper makes me more confident that the test actually checks that the type is immutable.

erlend-aasland deleted the use-check-disallow-inst branch May 27, 2021 06:44

Copy link
Copy Markdown
Contributor Author

Merged, thanks. This helper makes me more confident that the test actually checks that the type is immutable.

Great, thanks for reviewing and improving the PR!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL