classification
Title: python3.8.9, python3.9.2 test_embed test_tabnanny failed
Type: compile error Stage:
Components: Tests Versions: Python 3.9, Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: asholomitskiy84, terry.reedy, vstinner, wingarmac
Priority: normal Keywords:

Created on 2021-05-04 11:50 by asholomitskiy84, last changed 2021-05-04 21:49 by asholomitskiy84.

Files
File name Uploaded Description Edit
log_configure 3.9.2.log asholomitskiy84, 2021-05-04 11:50
log_make 3.9.2.log asholomitskiy84, 2021-05-04 11:50
log_make_test 3.9.2.log asholomitskiy84, 2021-05-04 11:51
log_make_test 3.8.9.log asholomitskiy84, 2021-05-04 11:52
Messages (3)
msg392880 - (view) Author: Alexei S (asholomitskiy84) Date: 2021-05-04 11:50
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)
msg392881 - (view) Author: Alexei S (asholomitskiy84) Date: 2021-05-04 11:54
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
msg392961 - (view) Author: Alexei S (asholomitskiy84) Date: 2021-05-04 21:49
the same issue also in
https://bugs.python.org/issue43583
History
Date User Action Args
2021-05-04 21:49:35asholomitskiy84setmessages: + msg392961
2021-05-04 11:54:26asholomitskiy84setmessages: + msg392881
2021-05-04 11:52:17asholomitskiy84setfiles: + log_make_test 3.8.9.log
2021-05-04 11:51:01asholomitskiy84setfiles: + log_make_test 3.9.2.log
2021-05-04 11:50:43asholomitskiy84setfiles: + log_make 3.9.2.log
2021-05-04 11:50:28asholomitskiy84create