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.

Author shreyanavigyan
Recipients Anthony Sottile, Mark.Shannon, domdfcoding, gvanrossum, pablogsal, shreyanavigyan, vstinner
Date 2021-06-22.20:09:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624392590.05.0.784163885267.issue44297@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-06-22 20:09:50shreyanavigyansetrecipients: + shreyanavigyan, gvanrossum, vstinner, Mark.Shannon, Anthony Sottile, pablogsal, domdfcoding
2021-06-22 20:09:50shreyanavigyansetmessageid: <1624392590.05.0.784163885267.issue44297@roundup.psfhosted.org>
2021-06-22 20:09:50shreyanavigyanlinkissue44297 messages
2021-06-22 20:09:49shreyanavigyancreate