[issue34184] Lib/test/test_dataclasses.py failed when ran as a script

2018-07-23 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34184] Lib/test/test_dataclasses.py failed when ran as a script

2018-07-23 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 635338248f967728f13b7bc4b9969aedff51eef6 by Serhiy Storchaka 
(Miss Islington (bot)) in branch '3.7':
bpo-34184: Fix running Lib/test/test_dataclasses.py as a script. (GH-8382) 
(GH-8421)
https://github.com/python/cpython/commit/635338248f967728f13b7bc4b9969aedff51eef6


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34184] Lib/test/test_dataclasses.py failed when ran as a script

2018-07-23 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7947

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34184] Lib/test/test_dataclasses.py failed when ran as a script

2018-07-23 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 3fe5cccb08283f5f4817ac432560972a4c0f5290 by Serhiy Storchaka in 
branch 'master':
bpo-34184: Fix running Lib/test/test_dataclasses.py as a script. (GH-8382)
https://github.com/python/cpython/commit/3fe5cccb08283f5f4817ac432560972a4c0f5290


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34184] Lib/test/test_dataclasses.py failed when ran as a script

2018-07-21 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +7912
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34184] Lib/test/test_dataclasses.py failed when ran as a script

2018-07-21 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

$ ./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..C object at' 
not found in '<__main__.TestRepr.test_no_repr..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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com