[issue44297] Frame with -1 line number

2021-08-13 Thread Mark Shannon
Mark Shannon added the comment: I believe this to be fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44297] Frame with -1 line number

2021-06-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0b6b2865187bca7ed7f1f511a02fc8bd13ee38ca by Mark Shannon in branch '3.10': bpo-44297: Add a regression test for line numbers in with statements (GH-26891) https://github.com/python/cpython/commit/0b6b2865187bca7ed7f1f511a02fc8bd13ee38ca

[issue44297] Frame with -1 line number

2021-06-24 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +25468 pull_request: https://github.com/python/cpython/pull/26891 ___ Python tracker ___

[issue44297] Frame with -1 line number

2021-06-24 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +25467 pull_request: https://github.com/python/cpython/pull/26890 ___ Python tracker ___

[issue44297] Frame with -1 line number

2021-06-24 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Found the culprit - https://github.com/python/cpython/blob/769d7d0c66c5b86e2dd29b9ce67ac2daaab1bb38/Python/compile.c#L5268 Same goes for async with - https://github.com/python/cpython/blob/769d7d0c66c5b86e2dd29b9ce67ac2daaab1bb38/Python/compile.c#L5171

[issue44297] Frame with -1 line number

2021-06-23 Thread Mark Shannon
Mark Shannon added the comment: Thanks for the reproducer. -- assignee: -> Mark.Shannon ___ Python tracker ___ ___

[issue44297] Frame with -1 line number

2021-06-23 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Oh it is also occurring when running from script (I ran it from IDLE and it always results in correct lineno). I wrote example similar to how unittests work and the frame with -1 lineno is also occurring there. Here is the code - ``` class A: def

[issue44297] Frame with -1 line number

2021-06-22 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Here presumably the error is occurring somewhere near unittest. I've tested this and wrote a minimal reproducible example. ``` import unittest class TestingError(unittest.TestCase): def test_negative_one(self): with

[issue44297] Frame with -1 line number

2021-06-21 Thread STINNER Victor
STINNER Victor added the comment: Oh, I can still reproduce the issue on the main branch with this patch: diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index cee97a8302..3f66818ae1 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -4499,7 +4499,7 @@ def msg_cb(conn,

[issue44297] Frame with -1 line number

2021-06-21 Thread STINNER Victor
STINNER Victor added the comment: Can the issue be closed? I'm not sure which assertion failed in test_ssl.test_pha_required_nocert(). I bet on this one: with self.assertRaisesRegex( ssl.SSLError, '(certificate required|EOF occurred)'

[issue44297] Frame with -1 line number

2021-06-21 Thread Mark Shannon
Mark Shannon added the comment: New changeset 7674c83d81905d6afe989ca3f93f08b7939b057c by Mark Shannon in branch '3.10': bpo-44297: Fix missing line number in generator expressions (GH-26821) https://github.com/python/cpython/commit/7674c83d81905d6afe989ca3f93f08b7939b057c --

[issue44297] Frame with -1 line number

2021-06-21 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +25402 pull_request: https://github.com/python/cpython/pull/26821 ___ Python tracker ___

[issue44297] Frame with -1 line number

2021-06-21 Thread Mark Shannon
Mark Shannon added the comment: New changeset 82e5c28af7049c4f5343c808f172cbe2e145f49b by Mark Shannon in branch 'main': bpo-44297: Fix missing line number in generator expressions (GH-26801) https://github.com/python/cpython/commit/82e5c28af7049c4f5343c808f172cbe2e145f49b --

[issue44297] Frame with -1 line number

2021-06-19 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +25382 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26801 ___ Python tracker ___

[issue44297] Frame with -1 line number

2021-06-19 Thread Mark Shannon
Mark Shannon added the comment: Thanks Anthony, that's a big help. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44297] Frame with -1 line number

2021-06-19 Thread Anthony Sottile
Anthony Sottile added the comment: here is a minimal reproduction: ```python def iterboom(): raise AssertionError yield 1 next(1 for x in iterboom()) ``` python 3.9: ``` $ python3.9 t.py Traceback (most recent call last): File "/tmp/rinohtype/t.py", line 5, in next(1 for x

[issue44297] Frame with -1 line number

2021-06-18 Thread Anthony Sottile
Anthony Sottile added the comment: here's the traceback pytest is trying to display and crashing: ``` Traceback (most recent call last): File "/tmp/rinohtype/venv/lib/python3.10/site-packages/_pytest/runner.py", line 311, in from_call result: Optional[TResult] = func() File

[issue44297] Frame with -1 line number

2021-06-18 Thread Anthony Sottile
Anthony Sottile added the comment: this appears to have regressed in 3.10 as well according to some reports on pytest: https://github.com/pytest-dev/pytest/pull/8227#issuecomment-864327090 -- nosy: +Anthony Sottile, pablogsal versions: +Python 3.10

[issue44297] Frame with -1 line number

2021-06-06 Thread Dominic Davis-Foster
Dominic Davis-Foster added the comment: Is this a re-regression of https://bugs.python.org/issue43933? -- nosy: +domdfcoding ___ Python tracker ___

[issue44297] Frame with -1 line number

2021-06-02 Thread STINNER Victor
New submission from STINNER Victor : While debugging https://bugs.python.org/issue43921 on Windows, I got a traceback with a single frame and the frame line number is -1. It looks like a Python 3.11 regression. Mark, Guido: can it be related to recent optimization work done in the main