Test failures on Python 3.7 beta 5 and Windows 10 #77900
Copy link
Copy link
Closed
Labels
3.7 (EOL)end of lifeend of lifetestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
| BPO | 33719 |
|---|---|
| Nosy | @terryjreedy, @pfmoore, @vstinner, @tjguk, @ned-deily, @zware, @zooba |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = <Date 2018-07-23.12:46:17.814>
created_at = <Date 2018-05-31.14:53:06.654>
labels = ['3.7', 'type-bug', 'tests']
title = 'Test failures on Python 3.7 beta 5 and Windows 10'
updated_at = <Date 2018-07-23.12:46:17.813>
user = 'https://github.com/vstinner'bugs.python.org fields:
activity = <Date 2018-07-23.12:46:17.813>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2018-07-23.12:46:17.814>
closer = 'vstinner'
components = ['Tests']
creation = <Date 2018-05-31.14:53:06.654>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 33719
keywords = []
message_count = 6.0
messages = ['318322', '318324', '318448', '320054', '320644', '322209']
nosy_count = 7.0
nosy_names = ['terry.reedy', 'paul.moore', 'vstinner', 'tim.golden', 'ned.deily', 'zach.ware', 'steve.dower']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue33719'
versions = ['Python 3.6', 'Python 3.7']Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.7 (EOL)end of lifeend of lifetestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
vstinner commentedon May 31, 2018
I ran the test suite on an installed Python 3.7 beta5 on Windows 10. The following tests fail:
== test_marshal ==
C:\Users\vstinner\AppData\Local\Programs\Python\Python37>python.exe -m test test_marshal -v
== CPython 3.7.0b5 (v3.7.0b5:abb8802389, May 31 2018, 01:54:01) [MSC v.1913 64 bit (AMD64)]
== Windows-10-10.0.16299-SP0 little-endian
== cwd: C:\Users\vstinner\AppData\Local\Temp\test_python_3836
== CPU count: 2
== encodings: locale=cp1252, FS=utf-8
Run tests sequentially
0:00:00 [1/1] test_marshal
(...)
test_loads_2x_code (test.test_marshal.BugsTestCase) ... Windows fatal exception: stack overflow
Current thread 0x000003a0 (most recent call first):
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\unittest\case.py", line 178 in handle
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\unittest\case.py", line 743 in assertRaises
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\test\test_marshal.py", line 215 in test_loads_2x_code
(...)
== test_pkg ==
C:\Users\vstinner\AppData\Local\Programs\Python\Python37>python.exe -X utf8 -m test -v test_pkg
== CPython 3.7.0b5 (v3.7.0b5:abb8802389, May 31 2018, 01:54:01) [MSC v.1913 64 bit (AMD64)]
== Windows-10-10.0.16299-SP0 little-endian
== cwd: C:\Users\vstinner\AppData\Local\Temp\test_python_6984
== CPU count: 2
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 [1/1] test_pkg
test_1 (test.test_pkg.TestPkg) ... ok
test_2 (test.test_pkg.TestPkg) ... ok
test_3 (test.test_pkg.TestPkg) ... ok
test_4 (test.test_pkg.TestPkg) ... ERROR
test_5 (test.test_pkg.TestPkg) ... ok
test_6 (test.test_pkg.TestPkg) ... ok
test_7 (test.test_pkg.TestPkg) ... FAIL
test_8 (test.test_pkg.TestPkg) ... ok
======================================================================
ERROR: test_4 (test.test_pkg.TestPkg)
----------------------------------------------------------------------
======================================================================
FAIL: test_7 (test.test_pkg.TestPkg)
----------------------------------------------------------------------
First differing element 6:
'__spec__'
'__path__'
Second list contains 1 additional elements.
First extra element 7:
'__spec__'
['__cached__',
'__doc__',
'__file__',
'__loader__',
'__name__',
'__package__',
+ '__path__',
'__spec__']
----------------------------------------------------------------------
Ran 8 tests in 0.156s
FAILED (failures=1, errors=1)
test test_pkg failed
test_pkg failed
1 test failed:
test_pkg
Total duration: 187 ms
Tests result: FAILURE
== test_tools ==
C:\Users\vstinner\AppData\Local\Programs\Python\Python37>python.exe -m test -v test_tools -m test_sundry
== CPython 3.7.0b5 (v3.7.0b5:abb8802389, May 31 2018, 01:54:01) [MSC v.1913 64 bit (AMD64)]
== Windows-10-10.0.16299-SP0 little-endian
== cwd: C:\Users\vstinner\AppData\Local\Temp\test_python_7472
== CPU count: 2
== encodings: locale=cp1252, FS=utf-8
Run tests sequentially
0:00:00 [1/1] test_tools
test_analyze_dxp_import (test.test_tools.test_sundry.TestSundryScripts) ... ok
test_sundry (test.test_tools.test_sundry.TestSundryScripts) ... Usage: 2to3 [options] file|dir ...
__main__.py: error: no such option: -m
ERROR
test_sundry_windows (test.test_tools.test_sundry.TestSundryScripts) ... ok
======================================================================
ERROR: test_sundry (test.test_tools.test_sundry.TestSundryScripts)
----------------------------------------------------------------------
Ran 3 tests in 0.031s
FAILED (errors=1)
test test_tools failed
test_tools failed
1 test failed:
test_tools
Total duration: 78 ms
Tests result: FAILURE
vstinner commentedon May 31, 2018
I created bpo-33720: "test_marshal: crash in Python 3.7b5 on Windows 10".
terryjreedy commentedon Jun 1, 2018
I ran py -3.7 -m test -j11 -uall
I saw test_marshal fail with fatal exception.
I saw test_tools and test_site fail as below.
C:\Users\Terry>py -3.7 -X utf8 -m test test_pkg
0:00:00 [1/1] test_pkg
1 test OK.
test_tools failed -- running: test_io (103 sec), test_largefile (100 sec), test_multiprocessing_spawn (88 sec), test_mmap (91 sec), test_tokenize (43 sec)
Usage: 2to3 [options] file|dir ...
vstinner commentedon Jun 20, 2018
Ah, it's a known and old issue: bpo-25094.
terryjreedy commentedon Jun 28, 2018
Same test_site and test_tools (bpo-25094) failures on newly installed 3.6.6 and 3.7.0. They pass on repository 3.6,7,8. Was there a fix not pulled into the releases, or are these install dependent?
vstinner commentedon Jul 23, 2018
It seems like all test failures reported in this issue have been fixed or got their own dedicated issue, so I close thie issue.