Alexei S <asholomitski...@gmail.com> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43001>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to