[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII
Alexei S added the comment: how we can fix this small problem in next releases of test_embed test_tabnanny? other tests didn't fail -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII
Alexei S added the comment: yes! the problem was in folder caption! -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII
Alexei S added the comment: the problem is caused by language?? -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed
Alexei S added the comment: I downloaded tar.gz of Python-3.8.9 and Python-3.9.4 into my ~/Downloads folder (~/Загрузки in Russian) extracted them, after that executed: chmod +x configure CXX=/usr/bin/g++ ./configure --enable-optimizations make -j4 problems the same for both Python versions -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed
Alexei S added the comment: make test TESTOPTS="-v test_embed test_tabnanny" CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build running build running build_ext The following modules found by detect_modules() in setup.py, have been built by the Makefile instead, as configured by the Setup files: _abc atexitpwd time running build_scripts copying and adjusting /home/alexei/Загрузки/Python-3.9.4/Tools/scripts/pydoc3 -> build/scripts-3.9 copying and adjusting /home/alexei/Загрузки/Python-3.9.4/Tools/scripts/idle3 -> build/scripts-3.9 copying and adjusting /home/alexei/Загрузки/Python-3.9.4/Tools/scripts/2to3 -> build/scripts-3.9 changing mode of build/scripts-3.9/pydoc3 from 664 to 775 changing mode of build/scripts-3.9/idle3 from 664 to 775 changing mode of build/scripts-3.9/2to3 from 664 to 775 renaming build/scripts-3.9/pydoc3 to build/scripts-3.9/pydoc3.9 renaming build/scripts-3.9/idle3 to build/scripts-3.9/idle3.9 renaming build/scripts-3.9/2to3 to build/scripts-3.9/2to3-3.9 ./python -E -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform ./python ./Tools/scripts/run_tests.py -v test_embed test_tabnanny /home/alexei/Загрузки/Python-3.9.4/python -u -W default -bb -E -m test -r -w -j 0 -u all,-largefile,-audio,-gui -v test_embed test_tabnanny == CPython 3.9.4 (default, May 25 2021, 18:48:10) [GCC 9.3.0] == Linux-5.8.0-48-generic-x86_64-with-glibc2.31 little-endian == cwd: /home/alexei/Загрузки/Python-3.9.4/build/test_python_58488æ == CPU count: 4 == encodings: locale=UTF-8, FS=utf-8 Using random seed 464094 0:00:00 load avg: 0.41 Run tests in parallel using 6 child processes 0:00:01 load avg: 0.53 [1/2/1] test_tabnanny failed test_correct_directory (test.test_tabnanny.TestCheck) Directory which contains few error free python source code files. ... ok test_correct_directory_verbose (test.test_tabnanny.TestCheck) Directory containing few error free python source code files. ... ok test_correct_file (test.test_tabnanny.TestCheck) A python source code file without any errors. ... ok test_errored_directory (test.test_tabnanny.TestCheck) Directory containing wrongly indented python source code files. ... ok test_when_nannynag_error (test.test_tabnanny.TestCheck) A python source code file eligible for raising `tabnanny.NannyNag`. ... ok test_when_nannynag_error_verbose (test.test_tabnanny.TestCheck) A python source code file eligible for raising `tabnanny.NannyNag`. ... ok test_when_no_file (test.test_tabnanny.TestCheck) A python file which does not exist actually in system. ... ok test_when_tokenize_tokenerror (test.test_tabnanny.TestCheck) A python source code file eligible for raising 'tokenize.TokenError'. ... ok test_when_wrong_indented (test.test_tabnanny.TestCheck) A python source code file eligible for raising `IndentationError`. ... ok test_command_usage (test.test_tabnanny.TestCommandLine) Should display usage on no arguments. ... ERROR test_double_verbose_mode (test.test_tabnanny.TestCommandLine) Should display detailed error information if double verbose is on. ... ok test_quiet_flag (test.test_tabnanny.TestCommandLine) Should display less when quite mode is on. ... ok test_verbose_mode (test.test_tabnanny.TestCommandLine) Should display more error information if verbose mode is on. ... ok test_with_error_free_file (test.test_tabnanny.TestCommandLine) Should not display anything if python file is correctly indented. ... ok test_with_errored_file (test.test_tabnanny.TestCommandLine) Should displays error when errored python file is given. ... ok test_errprint (test.test_tabnanny.TestErrPrint) Asserting result of `tabnanny.errprint()` by giving sample inputs. ... ok test_format_witnesses (test.test_tabnanny.TestFormatWitnesses) Asserting formatter result by giving various input samples. ... ok test_all_methods (test.test_tabnanny.TestNannyNag) Asserting behaviour of `tabnanny.NannyNag` exception. ... ok test_with_correct_code (test.test_tabnanny.TestProcessTokens) A python source code without any whitespace related problems. ... ok test_with_errored_codes_samples (test.test_tabnanny.TestProcessTokens) A python source code with whitespace related sampled problems. ... ok == ERROR: test_command_usage (test.test_tabnanny.TestCommandLine) Should display usage on no arguments. -- Traceback (most recent call last): File "/home/alexei/Загрузки/Python-3.9.4/Lib/test/test_tabnanny.py", line 324, in test_command_usage self.validate_cmd(stderr=stderr) File "/home/alexei/Загрузки/Python-3.9.4/Lib/test/test_tabnanny.py&qu
[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny
Alexei S added the comment: i rename folder and tried python3 -m '~/Загрузки/Python-389/Lib/test/test_embed' -v /usr/bin/python3: No module named ~/Загрузки/Python-389/Lib/test/test_embed ??? -- ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny
Alexei S added the comment: python3 -m ~/Загрузки/Python-3.8.9/Lib/test/test_embed -v /usr/bin/python3: Error while finding module specification for '/home/alexei/Загрузки/Python-3.8.9/Lib/test/test_embed' (ModuleNotFoundError: No module named '/home/alexei/Загрузки/Python-3') it doesn't recognize '-' ?? -- ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed
Alexei S added the comment: the same issue also in https://bugs.python.org/issue43583 -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny
Alexei S added the comment: I have opened the same issue https://bugs.python.org/issue44031 -- nosy: +asholomitskiy84 ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny
Change by Alexei S : Added file: https://bugs.python.org/file50013/log_make_test 3.9.2.log ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny
Change by Alexei S : Added file: https://bugs.python.org/file50012/log_make_test 3.8.9.log ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43001] python3.8.9, python3.9.2 test_embed test_tabnanny failed
Change by Alexei S : -- resolution: -> out of date status: open -> closed ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed
Alexei S added the comment: this problem was announced also in 43001 https://bugs.python.org/issue43001?@ok_message=%D0%98%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D1%8B%20%D0%B0%D1%82%D1%80%D0%B8%D0%B1%D1%83%D1%82%D1%8B%20%D0%B7%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%B8%D0%B5%20%D0%BE%D0%B1%D1%8A%D0%B5%D0%BA%D1%82%D0%B0%20issue%2043001&@template=item -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed
Change by Alexei S : Added file: https://bugs.python.org/file50011/log_make_test 3.8.9.log ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed
Change by Alexei S : Added file: https://bugs.python.org/file50010/log_make_test 3.9.2.log ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed
Change by Alexei S : Added file: https://bugs.python.org/file50009/log_make 3.9.2.log ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed
New submission from Alexei S : Python 3.9.2 make test == Tests result: FAILURE then FAILURE == 396 tests OK. 2 tests failed: test_embed test_tabnanny 27 tests skipped: test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_idle test_ioctl test_kqueue test_lzma test_msilib test_ossaudiodev test_readline test_smtpnet test_ssl test_startfile test_tcl test_tix test_tk test_ttk_guionly test_ttk_textonly test_turtle test_winconsoleio test_winreg test_winsound test_zipfile64 test_zoneinfo 2 re-run tests: test_embed test_tabnanny Total duration: 10 min 58 sec Tests result: FAILURE then FAILURE make: *** [Makefile:1199: test] Error 2 python 3.8.9 also show compile problems my system: Linux Mint 20.1 Cinnamon (Cinnamon 4.8.6) kernel 5.8.0-48-generic $uname -a Linux home 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux I tried to execute problem code from tabnanny in PyCharm - that's ok from test.support import (captured_stderr, captured_stdout, script_helper, findfile, unlink) def validate_cmd(self, *args, stdout="", stderr="", partial=False): """Common function to assert the behaviour of command line interface.""" _, out, err = script_helper.assert_python_ok('-m', 'tabnanny', *args) # Note: The `splitlines()` will solve the problem of CRLF(\r) added # by OS Windows. out = out.decode('ascii') err = err.decode('ascii') if partial: for std, output in ((stdout, out), (stderr, err)): _output = output.splitlines() for _std in std.splitlines(): with self.subTest(std=_std, output=_output): self.assertIn(_std, _output) else: self.assertListEqual(out.splitlines(), stdout.splitlines()) self.assertListEqual(err.splitlines(), stderr.splitlines()) def test_command_usage(self): path = findfile('~/Загрузки/Python-3.8.9/Lib/test/tabnanny.py') stderr = f"Usage: {path} [-v] file_or_directory ..." self.validate_cmd(stderr=stderr) -- components: Tests files: log_configure 3.9.2.log messages: 392880 nosy: asholomitskiy84, terry.reedy, vstinner, wingarmac priority: normal severity: normal status: open title: python3.8.9, python3.9.2 test_embed test_tabnanny failed type: compile error versions: Python 3.8, Python 3.9 Added file: https://bugs.python.org/file50008/log_configure 3.9.2.log ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43001] python3.8.9, python3.9.2 test_embed test_tabnanny failed
Change by Alexei S : -- title: python3.8.9, python3.9.1 test_embed test_tabnanny failed -> python3.8.9, python3.9.2 test_embed test_tabnanny failed ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed
Change by Alexei S : Added file: https://bugs.python.org/file50007/log_make_test 3.9.2.log ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed
Alexei S added the comment: python 3.8.9 also show compile problems my system: Linux Mint 20.1 Cinnamon (Cinnamon 4.8.6) kernel 5.8.0-48-generic $uname -a Linux home 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux I tried to execute problem code from tabnanny in PyCharm - that's ok from test.support import (captured_stderr, captured_stdout, script_helper, findfile, unlink) def validate_cmd(self, *args, stdout="", stderr="", partial=False): """Common function to assert the behaviour of command line interface.""" _, out, err = script_helper.assert_python_ok('-m', 'tabnanny', *args) # Note: The `splitlines()` will solve the problem of CRLF(\r) added # by OS Windows. out = out.decode('ascii') err = err.decode('ascii') if partial: for std, output in ((stdout, out), (stderr, err)): _output = output.splitlines() for _std in std.splitlines(): with self.subTest(std=_std, output=_output): self.assertIn(_std, _output) else: self.assertListEqual(out.splitlines(), stdout.splitlines()) self.assertListEqual(err.splitlines(), stderr.splitlines()) def test_command_usage(self): path = findfile('~/Загрузки/Python-3.8.9/Lib/test/tabnanny.py') stderr = f"Usage: {path} [-v] file_or_directory ..." self.validate_cmd(stderr=stderr) -- title: python3.9.1python3.9.1 test_embed test_tabnanny failed -> python3.8.9, python3.9.1 test_embed test_tabnanny failed Added file: https://bugs.python.org/file50006/make_test_3.8.9.log ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed
Change by Alexei S : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43001] python3.9.1 test_embed test_tabnanny failed
Change by Alexei S : -- resolution: out of date -> status: closed -> open ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43001] python3.9.1python3.9.1 test_embed test_tabnanny failed
Change by Alexei S : -- title: python3.9.1 test_embed test_tabnanny failed -> python3.9.1python3.9.1 test_embed test_tabnanny failed ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny
Change by Alexei S : -- components: +Tests type: -> compile error ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43328] make test errors
Alexei S added the comment: == Tests result: FAILURE == 403 tests OK. 3 tests failed: test_embed test_ssl test_tabnanny -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43328] make test errors
New submission from Alexei S : this commands are successful: CXX=/usr/bin/g++ ./configure --enable-optimizations >> log_configure.log make -j4 >> log_make.log errors on make test: make -j4 test >> log_make_test.log my system: uname -a Linux home 5.8.0-43-generic #49~20.04.1-Ubuntu SMP Fri Feb 5 09:57:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Linux Mint 20.1 x64 Cinnamon -- files: PythonCompileLogs.tar.gz messages: 387723 nosy: asholomitskiy84 priority: normal severity: normal status: open title: make test errors type: compile error versions: Python 3.9 Added file: https://bugs.python.org/file49838/PythonCompileLogs.tar.gz ___ Python tracker <https://bugs.python.org/issue43328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43001] python3.9.1 test_embed test_tabnanny failed
New submission from Alexei S : == Tests result: FAILURE then FAILURE == 396 tests OK. 2 tests failed: test_embed test_tabnanny 27 tests skipped: test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_idle test_ioctl test_kqueue test_lzma test_msilib test_ossaudiodev test_readline test_smtpnet test_ssl test_startfile test_tcl test_tix test_tk test_ttk_guionly test_ttk_textonly test_turtle test_winconsoleio test_winreg test_winsound test_zipfile64 test_zoneinfo 2 re-run tests: test_embed test_tabnanny Total duration: 10 min 58 sec Tests result: FAILURE then FAILURE make: *** [Makefile:1199: test] Error 2 -- components: Tests messages: 385490 nosy: asholomitskiy84 priority: normal severity: normal status: open title: python3.9.1 test_embed test_tabnanny failed type: compile error versions: Python 3.9 ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com