Skip to content

Commit f66f5ae

Browse files
brijkapadiaaiskpicnixz
authored
Apply suggestions from code review
Co-authored-by: AN Long <aisk@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 2371ae9 commit f66f5ae

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Lib/test/test_exceptions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,6 @@ def test_exec_set_nomemory_hang(self):
19561956

19571957
# gh-146250: memory leak with re-initialization of SyntaxError
19581958
def test_syntax_error_memory_leak(self):
1959-
# Test crashes with ASan
19601959
e = SyntaxError("msg", ("file.py", 1, 2, "txt", 2, 3))
19611960
e.__init__("new_msg", ("new_file.py", 2, 3, "new_txt", 3, 4))
19621961

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Fixed a memory leak in :class:`SyntaxError` when re-initializing it.
1+
Fixed a memory leak in :exc:`SyntaxError` when re-initializing it.

0 commit comments

Comments
 (0)