You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test failures on Python 3.7 beta 5 and Windows 10 #77900
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=Noneclosed_at=<Date2018-07-23.12:46:17.814>created_at=<Date2018-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=<Date2018-07-23.12:46:17.813>user='https://github.com/vstinner'
I ran the test suite on an installed Python 3.7 beta5 on Windows 10. The following tests fail:
test_marshal.test_loads_2x_code(): Windows fatal exception: stack overflow
test_pkg: failures when run with -X utf8
test.test_tools.test_sundry.TestSundryScripts.test_sundry(): "optparse.BadOptionError: no such option: -m"
== 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
Traceback (most recent call last):
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\test\test_pkg.py", line 180, in test_4self.run_code(s)
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\test\test_pkg.py", line 69, in run_codeexec(textwrap.dedent(code), globals(), {"self": self})
File "<string>", line 2, in <module>
File "C:\Users\vstinner\AppData\Local\Temp\tmpeeb0h5ra\t4.py", line 1, in <module>RuntimeError: Shouldnt load t4.py
Traceback (most recent call last):
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\optparse.py", line 1387, in parse_args
stop =self._process_args(largs, rargs, values)
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\optparse.py", line 1431, in _process_argsself._process_short_opts(rargs, values)
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\optparse.py", line 1513, in _process_short_optsraise BadOptionError(opt)
optparse.BadOptionError: no such option: -m
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\test\test_tools\test_sundry.py", line 36, in test_sundry
import_tool(name)
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\test\test_tools\__init__.py", line 21, in import_toolreturn importlib.import_module(toolname)
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py", line 127, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\Tools\scripts\2to3.py", line 5, in <module>
sys.exit(main("lib2to3.fixes"))
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\lib2to3\main.py", line 179, in main
options, args = parser.parse_args(args)
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\optparse.py", line 1389, in parse_argsself.error(str(err))
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\optparse.py", line 1569, in errorself.exit(2, "%s: error: %s\n"% (self.get_prog_name(), msg))
File "C:\Users\vstinner\AppData\Local\Programs\Python\Python37\lib\optparse.py", line 1559, in exit
sys.exit(status)
SystemExit: 2
Ran 3 tests in 0.031s
FAILED (errors=1)
test test_tools failed
test_tools failed
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?
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.