Skip to content

bpo-45400: Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals on a1 releases#28784

Closed
hroncok wants to merge 1 commit into
python:mainfrom
hroncok:bpo-45400
Closed

bpo-45400: Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals on a1 releases#28784
hroncok wants to merge 1 commit into
python:mainfrom
hroncok:bpo-45400

Conversation

@hroncok
Copy link
Copy Markdown
Contributor

@hroncok hroncok commented Oct 7, 2021

When test_name_error_suggestions_do_not_trigger_for_too_many_locals
run from a directory that contained "a1" somewhere in the path,
which was likely to happen when building from unpacked sources of a first
alpha release, it failed, as it asserts the string "a1" is nowhere in the traceback.

Now, we replace the full path in the traceback with basename to prevent this.

https://bugs.python.org/issue45400

…y_locals on a1 releases

When test_name_error_suggestions_do_not_trigger_for_too_many_locals
run from a directory that contained "a1" somewhere in the path,
which was likely to happen when building from unpacked sources of a first
alpha release, it failed, as it asserts the string "a1" is nowhere in the traceback.

Now, we replace the full path in the traceback with basename to prevent this.
@bedevere-bot bedevere-bot added the tests Tests in the Lib/test dir label Oct 7, 2021
@hroncok
Copy link
Copy Markdown
Contributor Author

hroncok commented Oct 7, 2021

never mind, #28783 is probably a better fix

@hroncok hroncok closed this Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants