[Bug 21278] New: python's test_zipimport_support test fails
http://bugs.winehq.org/show_bug.cgi?id=21278 Summary: python's test_zipimport_support test fails Product: Wine Version: 1.1.35 Platform: x86 URL: http://www.python.org OS/Version: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: austinenglish(a)gmail.com Created an attachment (id=25590) --> (http://bugs.winehq.org/attachment.cgi?id=25590) test output Install python and run: wine 'c:\Python31\python.exe' -m test.test_zipimport_support test_doctest_main_issue4197 (__main__.ZipSupportTests) ... Expected line File "C:\windows\temp\tmppzq0bh\script.py", line 2, in __main__.Test Got stdout: ********************************************************************** File "C:\windows\temp\tmppzq0bh\script.py", line 2, in __main__.Test Failed example: 'line 2' Expected nothing Got: 'line 2' Full output attached. Vincent wrote in the wiki that somehow a 'C:' was changed to a 'c:'. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21278 --- Comment #1 from Austin English <austinenglish(a)gmail.com> 2010-01-06 16:13:20 --- Created an attachment (id=25591) --> (http://bugs.winehq.org/attachment.cgi?id=25591) test file -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21278 --- Comment #2 from Austin English <austinenglish(a)gmail.com> 2010-01-06 18:30:09 --- Also fails on my home machine. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21278 Xavier Vachon <xvachon(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xvachon(a)gmail.com --- Comment #3 from Xavier Vachon <xvachon(a)gmail.com> 2011-04-04 18:42:55 CDT --- Still a bug in git (1.3.17). Ran 4 tests in 2.565s FAILED (failures=1) Traceback (most recent call last): File "C:\Python32\lib\runpy.py", line 160, in _run_module_as_main "__main__", fname, loader, pkg_name) File "C:\Python32\lib\runpy.py", line 73, in _run_code exec(code, run_globals) File "C:\Python32\lib\test\test_zipimport_support.py", line 241, in <module> test_main() File "C:\Python32\lib\test\test_zipimport_support.py", line 237, in test_main test.support.run_unittest(ZipSupportTests) File "C:\Python32\lib\test\support.py", line 1145, in run_unittest _run_suite(suite) File "C:\Python32\lib\test\support.py", line 1128, in _run_suite raise TestFailed(err) test.support.TestFailed: Traceback (most recent call last): File "C:\Python32\lib\test\test_zipimport_support.py", line 227, in test_pdb_issue4201 self.assertIn(script_name.encode('utf-8'), data) AssertionError: b'C:\\users\\xavier\\temp\\tmplfskpl\\script.py' not found in b'> c:\\users\\xavier\\temp\\tmplfskpl\\script.py(2)f()\n-> pass\n(Pdb) 1 \tdef f():\n 2 ->\t pass\n 3 \t\n 4 \timport pdb\n 5 \tpdb.Pdb(nosigint=True).runcall(f)\n[EOF]\n(Pdb) \n' -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21278 --- Comment #4 from Austin English <austinenglish(a)gmail.com> 2013-10-04 16:43:23 CDT --- Crashes with python3.3 / wine-1.7.3-120-g4df4a54. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21278 --- Comment #5 from Austin English <austinenglish(a)gmail.com> 2013-10-04 16:43:42 CDT --- Created attachment 46198 --> http://bugs.winehq.org/attachment.cgi?id=46198 terminal output/stacktrace -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=21278 winetest(a)luukku.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest(a)luukku.com --- Comment #6 from winetest(a)luukku.com --- (In reply to Austin English from comment #4)
Crashes with python3.3 / wine-1.7.3-120-g4df4a54.
Python 3.1 no crash. Results are a bit compilicated to read but looks like 1 failure. wine 2.0rc5. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21278 --- Comment #7 from Janne <janne.kekkonen@gmail.com> --- Created attachment 81647 --> http://bugs.winehq.org/attachment.cgi?id=81647 python test results Hello, Downloaded Python 3.1 from here. https://www.python.org/ftp/python/3.1/python-3.1.amd64.msi Test was performed with Wine 11.13 on clean 64-bit prefix configured as Windows 10. Python was started on installation directory. Command used to get test results with fixme messages into file: wine python.exe "C:/Python31/Lib/test/test_zipimport_support.py" > test_results_info.txt > 2>&1 Python did not crash. I attached text containing the test result files. Several fixme messages appeared at runtime, but here are the three relevant individual messages: fixme:file:server_get_file_info Unsupported info class e fixme:msvcrt:__clean_type_info_names_internal (000000001E28FEE0) stub fixme:msvcrt:__clean_type_info_names_internal (000000000130BC78) stub -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21278 --- Comment #8 from Janne <janne.kekkonen@gmail.com> --- Created attachment 81655 --> http://bugs.winehq.org/attachment.cgi?id=81655 pipe test app Hello, It seems that a couple of these fixme messages: fixme:file:server_get_file_info Unsupported info class e Are triggered when NtQueryInformationFile is called on a pipe. Based on test_zipimport_support below is a minimal Python snippet demonstrating this behavior: --- import os import io from _subprocess import * import msvcrt read, write = CreatePipe(None, 0) write = msvcrt.open_osfhandle(write.Detach(), 0) read = msvcrt.open_osfhandle(read.Detach(), 0) wr_handle = io.open(write, 'wb', 1) # triggers fixme msg rd_handle = io.open(read, 'rb', 1) # triggers fixme msg ----- Here is a C test case demonstrating NtQueryInformationFile behavior on a pipe, comparing Windows and Wine. On Windows 11:
systeminfo | findstr /B /C:"OS Name" OS Name: Microsoft Windows 11 Pro
pipe_tst.exe Write handle NtQueryInformationFile status: 0x00000000 Read handle NtQueryInformationFile status: 0x00000000
On Wine 11.13:
wine --version wine-11.13 winecfg /v win10 wine pipe_tst.exe 0130:fixme:file:server_get_file_info Unsupported info class e 0130:fixme:file:server_get_file_info Unsupported info class e Write handle NtQueryInformationFile status: 0xC0000002 Read handle NtQueryInformationFile status: 0xC0000002 sha1sum pipe_tst.exe 4dffc87ec44a623f27928b866ed183a8e1518ab3 pipe_tst.exe
The executable and source code are attached in the zip file. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla