Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-108303: Move tokenize-related data to Lib/test/tokenizedata #109265

Merged
merged 4 commits into from
Sep 12, 2023

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Sep 11, 2023

In the future, I think, we can move more files to this folder, since there are quite a lot of artefacts for tokenize and similar tools.

@serhiy-storchaka
Copy link
Member

Should not badsyntax_3131.py and coding20731.py be included?

@vstinner
Copy link
Member

Should not badsyntax_3131.py and coding20731.py be included?

I think so, yes.

@AlexWaygood AlexWaygood removed their request for review September 11, 2023 19:43
fn = support.findfile("tokenize_tests.txt")
tempdir = os.path.dirname(fn) or os.curdir
fn = support.findfile("tokenize_tests.txt", subdir='tokenizedata')
tempdir = os.path.dirname(os.path.dirname(fn)) or os.curdir
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the logical to get tempdir here. Maybe start from file instead? Why is it called tempdir? That's Lib/test/, the directory of test files, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not something I am modifing here. I only changed
tempdir = os.path.dirname(fn) or os.curdir
to be
tempdir = os.path.dirname(os.path.dirname(fn)) or os.curdir

I can open a new issue about it and dig into it later :)

Lib/test/test_tokenize.py Outdated Show resolved Hide resolved
Co-authored-by: Victor Stinner <vstinner@python.org>
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@vstinner
Copy link
Member

@serhiy-storchaka: Do you want to review the updated PR? It LGTM.

@sobolevn
Copy link
Member Author

@vstinner thanks for your help! 👍

@serhiy-storchaka serhiy-storchaka merged commit 1110c5b into python:main Sep 12, 2023
21 checks passed
@serhiy-storchaka
Copy link
Member

Should it be backported?

@sobolevn
Copy link
Member Author

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot aarch64 Fedora Stable Clang Installed 3.x has failed when building commit 1110c5b.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/14/builds/4567) and take a look at the build logs.
  4. Check if the failure is related to this commit (1110c5b) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/14/builds/4567

Failed tests:

  • test_unicode_identifiers
  • test_source_encoding
  • test_tokenize
  • test_py_compile
  • test_tarfile

Failed subtests:

  • test_no_coding_cookie_and_utf8_bom - test.test_tokenize.TestTokenizerAdheresToPep0263.test_no_coding_cookie_and_utf8_bom
  • test_create_command - test.test_tarfile.CommandLineTest.test_create_command
  • test_latin1_coding_cookie_and_utf8_bom - test.test_tokenize.TestTokenizerAdheresToPep0263.test_latin1_coding_cookie_and_utf8_bom
  • test_create_command_compressed - test.test_tarfile.CommandLineTest.test_create_command_compressed
  • test_roundtrip - test.test_tokenize.TestRoundtrip.test_roundtrip
  • test_create_command_dotless_filename - test.test_tarfile.CommandLineTest.test_create_command_dotless_filename
  • test_create_command_dot_started_filename - test.test_tarfile.CommandLineTest.test_create_command_dot_started_filename
  • test_bad_coding2 - test.test_source_encoding.MiscSourceEncodingTest.test_bad_coding2
  • test_20731 - test.test_source_encoding.MiscSourceEncodingTest.test_20731
  • test_extract_command_different_directory - test.test_tarfile.CommandLineTest.test_extract_command_different_directory
  • test_create_command_verbose - test.test_tarfile.CommandLineTest.test_create_command_verbose
  • test_extract_command - test.test_tarfile.CommandLineTest.test_extract_command
  • test_bad_coding - test.test_py_compile.PyCompileTestsWithSourceEpoch.test_bad_coding
  • test_extract_command_verbose - test.test_tarfile.CommandLineTest.test_extract_command_verbose
  • test_utf8_coding_cookie_and_utf8_bom - test.test_tokenize.TestTokenizerAdheresToPep0263.test_utf8_coding_cookie_and_utf8_bom
  • test_invalid - test.test_unicode_identifiers.PEP3131Test.test_invalid
  • test_bad_coding_cookie - test.test_tokenize.TestTokenizerAdheresToPep0263.test_bad_coding_cookie
  • test_bad_coding - test.test_source_encoding.MiscSourceEncodingTest.test_bad_coding
  • test_quiet - test.test_py_compile.PyCompileTestsWithSourceEpoch.test_quiet
  • test_bad_coding - test.test_py_compile.PyCompileTestsWithoutSourceEpoch.test_bad_coding
  • test_quiet - test.test_py_compile.PyCompileTestsWithoutSourceEpoch.test_quiet
  • test_bad_syntax - test.test_py_compile.PyCompileCLITestCase.test_bad_syntax
  • test_utf8_coding_cookie_and_no_utf8_bom - test.test_tokenize.TestTokenizerAdheresToPep0263.test_utf8_coding_cookie_and_no_utf8_bom

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2714, in test_create_command_dotless_filename
    out = self.tarfilecmd('-c', dotlessname, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_3535715æ/test_python_worker_3550281æ/@test_3550281_tmpæ-tardir/testtar', 'tokenizedata/tokenize_tests.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2688, in test_create_command
    out = self.tarfilecmd(opt, tmpname, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_3535715æ/test_python_worker_3540315æ/@test_3540315_tmpæ-tardir/tmp.tar', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2743, in test_create_command_compressed
    out = self.tarfilecmd('-c', tar_name, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_3535715æ/test_python_worker_3540315æ/@test_3540315_tmpæ-tardir/tmp.tar.gz', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1220, in test_latin1_coding_cookie_and_utf8_bom
    self.assertRaises(SyntaxError, self._testFile, f)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 778, in assertRaises
    return context.handle('assertRaises', args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 238, in handle
    callable_obj(*args, **kwargs)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1204, in _testFile
    with open(path, 'rb') as f:
         ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/tokenizedata/tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 32, in wrapper
    return fxn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 204, in test_quiet
    self.assertIsNone(py_compile.compile(bad_coding, doraise=False, quiet=2))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/py_compile.py", line 142, in compile
    source_bytes = loader.get_data(file)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1197, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/tokenizedata/bad_coding2.py'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1798, in test_roundtrip
    with open(fn, 'rb') as f:
         ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'tokenizedata/tokenize_tests.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2703, in test_create_command_verbose
    out = self.tarfilecmd(opt, '-c', tmpname, *files,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-m', 'tarfile', '-v', '-c', '/tmp/test_python_3535715æ/test_python_worker_3550281æ/@test_3550281_tmpæ-tardir/tmp.tar', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2743, in test_create_command_compressed
    out = self.tarfilecmd('-c', tar_name, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_3535715æ/test_python_worker_3550281æ/@test_3550281_tmpæ-tardir/tmp.tar.gz', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_source_encoding.py", line 101, in test_bad_coding2
    self.verify_bad_module(module_name)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_source_encoding.py", line 104, in verify_bad_module
    self.assertRaises(SyntaxError, __import__, 'test.tokenizedata.' + module_name)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 778, in assertRaises
    return context.handle('assertRaises', args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 238, in handle
    callable_obj(*args, **kwargs)
ModuleNotFoundError: No module named 'test.tokenizedata'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2725, in test_create_command_dot_started_filename
    out = self.tarfilecmd('-c', tar_name, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_3535715æ/test_python_worker_3550281æ/@test_3550281_tmpæ-tardir/.testtar', 'tokenizedata/tokenize_tests.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_source_encoding.py", line 97, in test_bad_coding
    self.verify_bad_module(module_name)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_source_encoding.py", line 104, in verify_bad_module
    self.assertRaises(SyntaxError, __import__, 'test.tokenizedata.' + module_name)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 778, in assertRaises
    return context.handle('assertRaises', args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 238, in handle
    callable_obj(*args, **kwargs)
ModuleNotFoundError: No module named 'test.tokenizedata'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 22, in wrapper
    return fxn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 204, in test_quiet
    self.assertIsNone(py_compile.compile(bad_coding, doraise=False, quiet=2))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/py_compile.py", line 142, in compile
    source_bytes = loader.get_data(file)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1197, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/tokenizedata/bad_coding2.py'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_unicode_identifiers.py", line 22, in test_invalid
    from test.tokenizedata import badsyntax_3131
ModuleNotFoundError: No module named 'test.tokenizedata'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2790, in test_extract_command_different_directory
    self.make_simple_tarfile(tmpname)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2598, in make_simple_tarfile
    tf.add(tardata, arcname=os.path.basename(tardata))
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2165, in add
    tarinfo = self.gettarinfo(name, arcname)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2038, in gettarinfo
    statres = os.lstat(name)
              ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'tokenizedata/tokenize_tests.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2688, in test_create_command
    out = self.tarfilecmd(opt, tmpname, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_3535715æ/test_python_worker_3550281æ/@test_3550281_tmpæ-tardir/tmp.tar', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 22, in wrapper
    return fxn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 139, in test_bad_coding
    self.assertIsNone(py_compile.compile(bad_coding, doraise=False))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/py_compile.py", line 142, in compile
    source_bytes = loader.get_data(file)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1197, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/tokenizedata/bad_coding2.py'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1228, in test_utf8_coding_cookie_and_utf8_bom
    self._testFile(f)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1204, in _testFile
    with open(path, 'rb') as f:
         ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/tokenizedata/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 273, in test_bad_syntax
    self.assertIn(b'SyntaxError', stderr)
AssertionError: b'SyntaxError' not found in b"[Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/tokenizedata/badsyntax_3131.py'"


Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2904, in <module>
    main()
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2898, in main
    tf.add(file_name)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2165, in add
    tarinfo = self.gettarinfo(name, arcname)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2038, in gettarinfo
    statres = os.lstat(name)
              ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'tokenizedata/tokenize_tests.txt'
---


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2760, in test_extract_command_verbose
    self.make_simple_tarfile(tmpname)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2598, in make_simple_tarfile
    tf.add(tardata, arcname=os.path.basename(tardata))
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2165, in add
    tarinfo = self.gettarinfo(name, arcname)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2038, in gettarinfo
    statres = os.lstat(name)
              ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'tokenizedata/tokenize_tests.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2750, in test_extract_command
    self.make_simple_tarfile(tmpname)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2598, in make_simple_tarfile
    tf.add(tardata, arcname=os.path.basename(tardata))
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2165, in add
    tarinfo = self.gettarinfo(name, arcname)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2038, in gettarinfo
    statres = os.lstat(name)
              ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'tokenizedata/tokenize_tests.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 32, in wrapper
    return fxn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 139, in test_bad_coding
    self.assertIsNone(py_compile.compile(bad_coding, doraise=False))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/py_compile.py", line 142, in compile
    source_bytes = loader.get_data(file)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1197, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/tokenizedata/bad_coding2.py'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2703, in test_create_command_verbose
    out = self.tarfilecmd(opt, '-c', tmpname, *files,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-m', 'tarfile', '-v', '-c', '/tmp/test_python_3535715æ/test_python_worker_3540315æ/@test_3540315_tmpæ-tardir/tmp.tar', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1209, in test_utf8_coding_cookie_and_no_utf8_bom
    self._testFile(f)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1204, in _testFile
    with open(path, 'rb') as f:
         ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/tokenizedata/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2725, in test_create_command_dot_started_filename
    out = self.tarfilecmd('-c', tar_name, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_3535715æ/test_python_worker_3540315æ/@test_3540315_tmpæ-tardir/.testtar', 'tokenizedata/tokenize_tests.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2714, in test_create_command_dotless_filename
    out = self.tarfilecmd('-c', dotlessname, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_3535715æ/test_python_worker_3540315æ/@test_3540315_tmpæ-tardir/testtar', 'tokenizedata/tokenize_tests.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_source_encoding.py", line 75, in test_20731
    self.assertEqual(sub.returncode, 0)
AssertionError: 2 != 0


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1224, in test_no_coding_cookie_and_utf8_bom
    self._testFile(f)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1204, in _testFile
    with open(path, 'rb') as f:
         ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1231, in test_bad_coding_cookie
    self.assertRaises(SyntaxError, self._testFile, 'bad_coding.py')
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 778, in assertRaises
    return context.handle('assertRaises', args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 238, in handle
    callable_obj(*args, **kwargs)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1204, in _testFile
    with open(path, 'rb') as f:
         ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.13/test/tokenizedata/bad_coding.py'

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Fedora Stable Clang Installed 3.x has failed when building commit 1110c5b.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/350/builds/4461) and take a look at the build logs.
  4. Check if the failure is related to this commit (1110c5b) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/350/builds/4461

Failed tests:

  • test_unicode_identifiers
  • test.test_asyncio.test_unix_events
  • test_source_encoding
  • test_tokenize
  • test_py_compile
  • test_tarfile

Failed subtests:

  • test_no_coding_cookie_and_utf8_bom - test.test_tokenize.TestTokenizerAdheresToPep0263.test_no_coding_cookie_and_utf8_bom
  • test_create_command - test.test_tarfile.CommandLineTest.test_create_command
  • test_latin1_coding_cookie_and_utf8_bom - test.test_tokenize.TestTokenizerAdheresToPep0263.test_latin1_coding_cookie_and_utf8_bom
  • test_create_command_compressed - test.test_tarfile.CommandLineTest.test_create_command_compressed
  • test_roundtrip - test.test_tokenize.TestRoundtrip.test_roundtrip
  • test_create_command_dotless_filename - test.test_tarfile.CommandLineTest.test_create_command_dotless_filename
  • test_create_command_dot_started_filename - test.test_tarfile.CommandLineTest.test_create_command_dot_started_filename
  • test_bad_coding2 - test.test_source_encoding.MiscSourceEncodingTest.test_bad_coding2
  • test_20731 - test.test_source_encoding.MiscSourceEncodingTest.test_20731
  • test_extract_command_different_directory - test.test_tarfile.CommandLineTest.test_extract_command_different_directory
  • test_create_command_verbose - test.test_tarfile.CommandLineTest.test_create_command_verbose
  • test_extract_command - test.test_tarfile.CommandLineTest.test_extract_command
  • test_bad_coding - test.test_py_compile.PyCompileTestsWithSourceEpoch.test_bad_coding
  • test_extract_command_verbose - test.test_tarfile.CommandLineTest.test_extract_command_verbose
  • test_utf8_coding_cookie_and_utf8_bom - test.test_tokenize.TestTokenizerAdheresToPep0263.test_utf8_coding_cookie_and_utf8_bom
  • test_invalid - test.test_unicode_identifiers.PEP3131Test.test_invalid
  • test_bad_coding_cookie - test.test_tokenize.TestTokenizerAdheresToPep0263.test_bad_coding_cookie
  • test_bad_coding - test.test_source_encoding.MiscSourceEncodingTest.test_bad_coding
  • test_quiet - test.test_py_compile.PyCompileTestsWithSourceEpoch.test_quiet
  • test_bad_coding - test.test_py_compile.PyCompileTestsWithoutSourceEpoch.test_bad_coding
  • test_quiet - test.test_py_compile.PyCompileTestsWithoutSourceEpoch.test_quiet
  • test_bad_syntax - test.test_py_compile.PyCompileCLITestCase.test_bad_syntax
  • test_utf8_coding_cookie_and_no_utf8_bom - test.test_tokenize.TestTokenizerAdheresToPep0263.test_utf8_coding_cookie_and_no_utf8_bom
  • test_fork_signal_handling - test.test_asyncio.test_unix_events.TestFork.test_fork_signal_handling

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2725, in test_create_command_dot_started_filename
    out = self.tarfilecmd('-c', tar_name, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_1432282æ/test_python_worker_1437478æ/@test_1437478_tmpæ-tardir/.testtar', 'tokenizedata/tokenize_tests.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_source_encoding.py", line 75, in test_20731
    self.assertEqual(sub.returncode, 0)
AssertionError: 2 != 0


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2703, in test_create_command_verbose
    out = self.tarfilecmd(opt, '-c', tmpname, *files,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-m', 'tarfile', '-v', '-c', '/tmp/test_python_1432282æ/test_python_worker_1446771æ/@test_1446771_tmpæ-tardir/tmp.tar', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2725, in test_create_command_dot_started_filename
    out = self.tarfilecmd('-c', tar_name, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_1432282æ/test_python_worker_1446771æ/@test_1446771_tmpæ-tardir/.testtar', 'tokenizedata/tokenize_tests.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 32, in wrapper
    return fxn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 204, in test_quiet
    self.assertIsNone(py_compile.compile(bad_coding, doraise=False, quiet=2))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/py_compile.py", line 142, in compile
    source_bytes = loader.get_data(file)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1197, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/tokenizedata/bad_coding2.py'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_source_encoding.py", line 101, in test_bad_coding2
    self.verify_bad_module(module_name)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_source_encoding.py", line 104, in verify_bad_module
    self.assertRaises(SyntaxError, __import__, 'test.tokenizedata.' + module_name)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 778, in assertRaises
    return context.handle('assertRaises', args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 238, in handle
    callable_obj(*args, **kwargs)
ModuleNotFoundError: No module named 'test.tokenizedata'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1798, in test_roundtrip
    with open(fn, 'rb') as f:
         ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'tokenizedata/tokenize_tests.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1231, in test_bad_coding_cookie
    self.assertRaises(SyntaxError, self._testFile, 'bad_coding.py')
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 778, in assertRaises
    return context.handle('assertRaises', args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 238, in handle
    callable_obj(*args, **kwargs)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1204, in _testFile
    with open(path, 'rb') as f:
         ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/tokenizedata/bad_coding.py'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2743, in test_create_command_compressed
    out = self.tarfilecmd('-c', tar_name, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_1432282æ/test_python_worker_1446771æ/@test_1446771_tmpæ-tardir/tmp.tar.gz', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1209, in test_utf8_coding_cookie_and_no_utf8_bom
    self._testFile(f)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1204, in _testFile
    with open(path, 'rb') as f:
         ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/tokenizedata/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 22, in wrapper
    return fxn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 204, in test_quiet
    self.assertIsNone(py_compile.compile(bad_coding, doraise=False, quiet=2))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/py_compile.py", line 142, in compile
    source_bytes = loader.get_data(file)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1197, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/tokenizedata/bad_coding2.py'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1228, in test_utf8_coding_cookie_and_utf8_bom
    self._testFile(f)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1204, in _testFile
    with open(path, 'rb') as f:
         ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/tokenizedata/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1220, in test_latin1_coding_cookie_and_utf8_bom
    self.assertRaises(SyntaxError, self._testFile, f)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 778, in assertRaises
    return context.handle('assertRaises', args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 238, in handle
    callable_obj(*args, **kwargs)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1204, in _testFile
    with open(path, 'rb') as f:
         ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/tokenizedata/tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 273, in test_bad_syntax
    self.assertIn(b'SyntaxError', stderr)
AssertionError: b'SyntaxError' not found in b"[Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/tokenizedata/badsyntax_3131.py'"


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2790, in test_extract_command_different_directory
    self.make_simple_tarfile(tmpname)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2598, in make_simple_tarfile
    tf.add(tardata, arcname=os.path.basename(tardata))
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2165, in add
    tarinfo = self.gettarinfo(name, arcname)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2038, in gettarinfo
    statres = os.lstat(name)
              ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'tokenizedata/tokenize_tests.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2714, in test_create_command_dotless_filename
    out = self.tarfilecmd('-c', dotlessname, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_1432282æ/test_python_worker_1446771æ/@test_1446771_tmpæ-tardir/testtar', 'tokenizedata/tokenize_tests.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_source_encoding.py", line 97, in test_bad_coding
    self.verify_bad_module(module_name)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_source_encoding.py", line 104, in verify_bad_module
    self.assertRaises(SyntaxError, __import__, 'test.tokenizedata.' + module_name)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 778, in assertRaises
    return context.handle('assertRaises', args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/unittest/case.py", line 238, in handle
    callable_obj(*args, **kwargs)
ModuleNotFoundError: No module named 'test.tokenizedata'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/unittest/async_case.py", line 90, in _callTestMethod
    if self._callMaybeAsync(method) is not None:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/unittest/async_case.py", line 117, in _callMaybeAsync
    return self._asyncioTestContext.run(func, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/hashlib_helper.py", line 49, in wrapper
    return func_or_class(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_asyncio/test_unix_events.py", line 1937, in test_fork_signal_handling
    self.assertTrue(child_handled.is_set())
AssertionError: False is not true


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2688, in test_create_command
    out = self.tarfilecmd(opt, tmpname, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_1432282æ/test_python_worker_1437478æ/@test_1437478_tmpæ-tardir/tmp.tar', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2904, in <module>
    main()
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2898, in main
    tf.add(file_name)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2165, in add
    tarinfo = self.gettarinfo(name, arcname)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2038, in gettarinfo
    statres = os.lstat(name)
              ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'tokenizedata/tokenize_tests.txt'
---


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 32, in wrapper
    return fxn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 139, in test_bad_coding
    self.assertIsNone(py_compile.compile(bad_coding, doraise=False))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/py_compile.py", line 142, in compile
    source_bytes = loader.get_data(file)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1197, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/tokenizedata/bad_coding2.py'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 22, in wrapper
    return fxn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_py_compile.py", line 139, in test_bad_coding
    self.assertIsNone(py_compile.compile(bad_coding, doraise=False))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/py_compile.py", line 142, in compile
    source_bytes = loader.get_data(file)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1197, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/tokenizedata/bad_coding2.py'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_unicode_identifiers.py", line 22, in test_invalid
    from test.tokenizedata import badsyntax_3131
ModuleNotFoundError: No module named 'test.tokenizedata'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2750, in test_extract_command
    self.make_simple_tarfile(tmpname)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2598, in make_simple_tarfile
    tf.add(tardata, arcname=os.path.basename(tardata))
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2165, in add
    tarinfo = self.gettarinfo(name, arcname)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2038, in gettarinfo
    statres = os.lstat(name)
              ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'tokenizedata/tokenize_tests.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2743, in test_create_command_compressed
    out = self.tarfilecmd('-c', tar_name, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_1432282æ/test_python_worker_1437478æ/@test_1437478_tmpæ-tardir/tmp.tar.gz', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2703, in test_create_command_verbose
    out = self.tarfilecmd(opt, '-c', tmpname, *files,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-m', 'tarfile', '-v', '-c', '/tmp/test_python_1432282æ/test_python_worker_1437478æ/@test_1437478_tmpæ-tardir/tmp.tar', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2760, in test_extract_command_verbose
    self.make_simple_tarfile(tmpname)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2598, in make_simple_tarfile
    tf.add(tardata, arcname=os.path.basename(tardata))
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2165, in add
    tarinfo = self.gettarinfo(name, arcname)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/tarfile.py", line 2038, in gettarinfo
    statres = os.lstat(name)
              ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'tokenizedata/tokenize_tests.txt'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2688, in test_create_command
    out = self.tarfilecmd(opt, tmpname, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_1432282æ/test_python_worker_1446771æ/@test_1446771_tmpæ-tardir/tmp.tar', 'tokenizedata/tokenize_tests.txt', 'tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2714, in test_create_command_dotless_filename
    out = self.tarfilecmd('-c', dotlessname, *files)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tarfile.py", line 2582, in tarfilecmd
    rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 166, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 151, in _assert_python
    res.fail(cmd_line)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/support/script_helper.py", line 76, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/bin/python3.13', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/tmp/test_python_1432282æ/test_python_worker_1437478æ/@test_1437478_tmpæ-tardir/testtar', 'tokenizedata/tokenize_tests.txt']


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1224, in test_no_coding_cookie_and_utf8_bom
    self._testFile(f)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/test_tokenize.py", line 1204, in _testFile
    with open(path, 'rb') as f:
         ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.clang-installed/build/target/lib/python3.13/test/tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt'

@vstinner
Copy link
Member

Should it be backported?

I don't think so. I prefer to minimize backports, and here it's unlikely that we modify test files in stable versions.

@vstinner
Copy link
Member

Hi! The buildbot AMD64 Fedora Stable Clang Installed 3.x has failed when building commit 1110c5b.

@sobolevn: Oh, you need to add the new directory to TESTSUBDIRS in Makefile.pre.in. Can you please create a new PR to fix that?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x RHEL8 LTO + PGO 3.x has failed when building commit 1110c5b.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/442/builds/4960) and take a look at the build logs.
  4. Check if the failure is related to this commit (1110c5b) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/442/builds/4960

Failed tests:

  • test_tools

Failed subtests:

  • test_freeze_simple_script - test.test_tools.test_freeze.TestFreeze.test_freeze_simple_script

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z.lto-pgo/build/Lib/test/test_tools/test_freeze.py", line 28, in test_freeze_simple_script
    outdir, scriptfile, python = helper.prepare(script, outdir)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z.lto-pgo/build/Tools/freeze/test/freeze.py", line 146, in prepare
    copy_source_tree(srcdir, SRCDIR)
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z.lto-pgo/build/Tools/freeze/test/freeze.py", line 95, in copy_source_tree
    shutil.copytree(oldroot, newroot, ignore=ignore_non_src)
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z.lto-pgo/build/Lib/shutil.py", line 588, in copytree
    return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z.lto-pgo/build/Lib/shutil.py", line 542, in _copytree
    raise Error(errors)
shutil.Error: [('/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z.lto-pgo/build/build/test_python_907201æ/test_python_worker_909896æ/@test_909896_tmpæ2', '/tmp/test_python_hm7y8a95/tmpg0hepqdz/cpython/build/test_python_907201æ/test_python_worker_909896æ/@test_909896_tmpæ2', "[Errno 2] No such file or directory: '/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z.lto-pgo/build/build/test_python_907201æ/test_python_worker_909896æ/@test_909896_tmpæ2'")]

@vstinner
Copy link
Member

@sobolevn wrote a follow-up fix (merged): PR #109314.

vstinner pushed a commit to vstinner/cpython that referenced this pull request Sep 21, 2023
@bedevere-app
Copy link

bedevere-app bot commented Sep 21, 2023

GH-109677 is a backport of this pull request to the 3.12 branch.

vstinner pushed a commit to vstinner/cpython that referenced this pull request Sep 21, 2023
@bedevere-app
Copy link

bedevere-app bot commented Sep 21, 2023

GH-109678 is a backport of this pull request to the 3.11 branch.

vstinner added a commit that referenced this pull request Sep 21, 2023
…GH-109265) (#109678)

* gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265)

(cherry picked from commit 1110c5b)

* gh-108303: Add `Lib/test/tokenizedata` to `TESTSUBDIRS` (#109314)

(cherry picked from commit 42ab2cb)

---------

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Yhg1s pushed a commit that referenced this pull request Oct 2, 2023
…GH-109265) (#109677)

* gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265)

(cherry picked from commit 1110c5b)

* gh-108303: Add `Lib/test/tokenizedata` to `TESTSUBDIRS` (#109314)

(cherry picked from commit 42ab2cb)

---------

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants