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.

classification
Title: Lib/test/test_typing.py failed when ran as a script
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: serhiy.storchaka
Priority: normal Keywords: patch

Created on 2018-07-21 17:23 by serhiy.storchaka, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 8380 merged serhiy.storchaka, 2018-07-21 17:24
PR 8385 merged miss-islington, 2018-07-21 19:46
Messages (3)
msg322109 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-07-21 17:23
$ ./python Lib/test/test_typing.py
...
======================================================================
FAIL: test_repr (__main__.GenericTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_typing.py", line 654, in test_repr
    "<class 'test.test_typing.SimpleMapping'>")
AssertionError: "<class '__main__.SimpleMapping'>" != "<class 'test.test_typing.SimpleMapping'>"
- <class '__main__.SimpleMapping'>
?          ^^^  ^^
+ <class 'test.test_typing.SimpleMapping'>
?         +++++++++ ^^^  ^


----------------------------------------------------------------------
msg322122 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-07-21 19:46
New changeset 961360923e7997a04833652623ea549b0dc02262 by Serhiy Storchaka in branch 'master':
bpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380)
https://github.com/python/cpython/commit/961360923e7997a04833652623ea549b0dc02262
msg322141 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-07-22 10:41
New changeset 81f85d09f4cc83fc35452afcca75baaf64831b22 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7':
bpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380) (GH-8385)
https://github.com/python/cpython/commit/81f85d09f4cc83fc35452afcca75baaf64831b22
History
Date User Action Args
2022-04-11 14:59:03adminsetgithub: 78362
2018-07-22 10:45:01serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-07-22 10:41:49serhiy.storchakasetmessages: + msg322141
2018-07-21 19:46:47miss-islingtonsetpull_requests: + pull_request7915
2018-07-21 19:46:29serhiy.storchakasetmessages: + msg322122
2018-07-21 17:24:53serhiy.storchakasetkeywords: + patch
stage: patch review
pull_requests: + pull_request7910
2018-07-21 17:23:21serhiy.storchakacreate