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 sobolevn
Recipients sobolevn
Date 2022-01-17.15:22:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642432946.92.0.224502612065.issue46416@roundup.psfhosted.org>
In-reply-to
Content
Here's the problem:

```
» ./python.exe Lib/test/test_typing.py
........................................................................................................................................................................................................s.....................................................................................................................F.........................................................................................
======================================================================
FAIL: test_special_attrs2 (__main__.SpecialAttrsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_typing.py", line 5068, in test_special_attrs2
    self.assertEqual(
    ^^^^^^^^^^^^^^^^^
AssertionError: '__main__' != 'test.test_typing'
- __main__
+ test.test_typing
```

I think it is a good idea to use the same hack we have in `test_enum.py`: https://github.com/python/cpython/blob/83d544b9292870eb44f6fca37df0aa351c4ef83a/Lib/test/test_enum.py#L34

```python
MODULE = ('test.test_typing', '__main__')[__name__=='__main__']
```

PR is on its way :)
History
Date User Action Args
2022-01-17 15:22:26sobolevnsetrecipients: + sobolevn
2022-01-17 15:22:26sobolevnsetmessageid: <1642432946.92.0.224502612065.issue46416@roundup.psfhosted.org>
2022-01-17 15:22:26sobolevnlinkissue46416 messages
2022-01-17 15:22:26sobolevncreate