[issue34184] Lib/test/test_dataclasses.py failed when ran as a script
Serhiy Storchaka
report at bugs.python.org
Sat Jul 21 13:47:26 EDT 2018
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
$ ./python Lib/test/test_dataclasses.py
...
======================================================================
ERROR: test_classvar_module_level_import (__main__.TestStringAnnotations)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_dataclasses.py", line 2716, in test_classvar_module_level_import
from . import dataclass_module_1
ImportError: cannot import name 'dataclass_module_1' from '__main__' (Lib/test/test_dataclasses.py)
======================================================================
FAIL: test_no_repr (__main__.TestRepr)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_dataclasses.py", line 1970, in test_no_repr
repr(C(3)))
AssertionError: 'test_dataclasses.TestRepr.test_no_repr.<locals>.C object at' not found in '<__main__.TestRepr.test_no_repr.<locals>.C object at 0x7f11745df2c8>'
----------------------------------------------------------------------
----------
assignee: serhiy.storchaka
components: Tests
messages: 322113
nosy: eric.smith, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Lib/test/test_dataclasses.py failed when ran as a script
type: behavior
versions: Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34184>
_______________________________________
More information about the Python-bugs-list
mailing list