This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_grammar fails if run sequentially
Type: Stage: resolved
Components: Tests Versions: Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: erlendaasland, pablogsal
Priority: normal Keywords: patch

Created on 2021-04-30 22:56 by erlendaasland, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 25764 merged erlendaasland, 2021-04-30 22:57
Messages (3)
msg392532 - (view) Author: Erlend E. Aasland (erlendaasland) * (Python triager) Date: 2021-04-30 22:56
To reproduce:
$ ./python.exe -m test test_typing test_grammar
0:00:00 load avg: 1.95 Run tests sequentially
0:00:00 load avg: 1.95 [1/2] test_typing
0:00:00 load avg: 1.95 [2/2] test_grammar
test test_grammar failed -- Traceback (most recent call last):
  File "/Users/erlendaasland/src/cpython-support/Lib/test/test_grammar.py", line 396, in test_var_annot_in_module
    with self.assertRaises(NameError):
AssertionError: NameError not raised

test_grammar failed

== Tests result: FAILURE ==

1 test OK.

1 test failed:
    test_grammar

Total duration: 969 ms
Tests result: FAILURE
msg392538 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-04-30 23:23
New changeset e467ec476f624323b8638cf100d1bfbf1d6a21c6 by Erlend Egeberg Aasland in branch 'master':
bpo-43995: Fix reference leak in test_grammar (GH-25764)
https://github.com/python/cpython/commit/e467ec476f624323b8638cf100d1bfbf1d6a21c6
msg392539 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-04-30 23:23
Thanks for the quick fix Erlend!
History
Date User Action Args
2022-04-11 14:59:45adminsetgithub: 88161
2021-04-30 23:23:34pablogsalsetstatus: open -> closed
resolution: fixed
messages: + msg392539

stage: patch review -> resolved
2021-04-30 23:23:21pablogsalsetmessages: + msg392538
2021-04-30 22:57:00erlendaaslandsetkeywords: + patch
stage: patch review
pull_requests: + pull_request24457
2021-04-30 22:56:43erlendaaslandcreate