New submission from Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue34184>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to