Message396361
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 self.assertRaisesRegex(AssertionError, "xxxxx"):
self.assertEqual(1, 2)
```
Running this with `unittest discover` or in any other command-line way (like -c) results in frame with -1 while running it from script (with unittest.main probably) does not.
Hope this helps. |
|
Date |
User |
Action |
Args |
2021-06-22 20:09:50 | shreyanavigyan | set | recipients:
+ shreyanavigyan, gvanrossum, vstinner, Mark.Shannon, Anthony Sottile, pablogsal, domdfcoding |
2021-06-22 20:09:50 | shreyanavigyan | set | messageid: <1624392590.05.0.784163885267.issue44297@roundup.psfhosted.org> |
2021-06-22 20:09:50 | shreyanavigyan | link | issue44297 messages |
2021-06-22 20:09:49 | shreyanavigyan | create | |
|