This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asholomitskiy84
Recipients asholomitskiy84, terry.reedy, vstinner, wingarmac
Date 2021-05-04.11:10:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620126613.73.0.0629240612966.issue43001@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2021-05-04 11:10:13asholomitskiy84setrecipients: + asholomitskiy84, terry.reedy, vstinner, wingarmac
2021-05-04 11:10:13asholomitskiy84setmessageid: <1620126613.73.0.0629240612966.issue43001@roundup.psfhosted.org>
2021-05-04 11:10:13asholomitskiy84linkissue43001 messages
2021-05-04 11:10:12asholomitskiy84create