Skip to content

Conversation

@erlend-aasland
Copy link
Contributor

@erlend-aaslanderlend-aasland commented May 26, 2021

  • Use test.support.check_disallow_instantiation
  • Fix exception message regex for builtins

https://bugs.python.org/issue43988

@erlend-aaslanderlend-aasland changed the title bpo-43988: Use check disallow instantiationbpo-43988: Use check disallow instantiation helperMay 26, 2021
Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

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

@vstinnervstinner merged commit fbff538 into python:mainMay 27, 2021
@vstinner
Copy link
Member

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

@erlend-aaslanderlend-aasland deleted the use-check-disallow-inst branch May 27, 2021 06:44
@erlend-aasland
Copy link
ContributorAuthor

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!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@erlend-aasland@vstinner@the-knights-who-say-ni@bedevere-bot