Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-63161: Fix PEP 263 support#139481

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedOct 1, 2025
edited by bedevere-appbot
Loading

  • Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.
  • Detect decoding error in comments for UTF-8 encoding.

* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.* Detect decoding error in comments for UTF-8 encoding.
Comment on lines +347 to +358
constchar*line=tok->lineno <=2 ?tok->buf :tok->cur;
intlineno=tok->lineno <=2 ?1 :tok->lineno;
if (!tok->encoding) {
/* The default encoding is UTF-8, so make sure we don't have any
non-UTF-8 sequences in it. */
if (!_PyTokenizer_ensure_utf8(line,tok,lineno)) {
_PyTokenizer_error_ret(tok);
return0;
}
}
else {
PyObject*tmp=PyUnicode_Decode(line,strlen(line),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
constchar*line=tok->lineno <=2 ?tok->buf :tok->cur;
intlineno=tok->lineno <=2 ?1 :tok->lineno;
if (!tok->encoding) {
/*ThedefaultencodingisUTF-8,somakesurewedon't have any
non-UTF-8sequencesinit.*/
if (!_PyTokenizer_ensure_utf8(line,tok,lineno)) {
_PyTokenizer_error_ret(tok);
return0;
}
}
else {
PyObject*tmp=PyUnicode_Decode(line,strlen(line),
constintis_pseudo_line= (tok->lineno <=2);
constchar*line=is_pseudo_line ?tok->buf :tok->cur;
intlineno=is_pseudo_line ?1 :tok->lineno;
size_tslen=strlen(line);
if (slen> (size_t)PY_SSIZE_T_MAX) {
_PyTokenizer_error_ret(tok);
return0;
}
Py_ssize_tlinelen= (Py_ssize_t)slen;
if (!tok->encoding) {
/*ThedefaultencodingisUTF-8,somakesurewedon't have any
non-UTF-8sequencesinit.*/
if (!_PyTokenizer_ensure_utf8(line,tok,lineno)) {
_PyTokenizer_error_ret(tok);
return0;
}
}
else {
PyObject*tmp=PyUnicode_Decode(line,linelen,

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

LGTM. I am not sure about the tokenizer changes, but I trust unit tests :-)

@serhiy-storchaka
Copy link
MemberAuthor

Unfortunately there was a regression which caused one of existing tests to fail. Earlier, decoding error for default (UTF-8) encoding was raised only when the tokenizer tried to decode an identifier or string literal. So you had an affected line with underscored identifier or string literal containing undecodable bytes in a traceback. Now it is raised at the beginning of parsing string or after reading a line from the file (only for first few lines).

Fixing this regression was not easy. But now you have a nice line with the cursor pointing exactly to the undecodable byte in a traceback, and this works in more cases than earlier.

But it did not work and still does not work if the encoding is explicitly specified. Then you get a SyntaxError without correct reference to the position of decoding error. This is a different complex issue.

@serhiy-storchakaserhiy-storchakaenabled auto-merge (squash)October 10, 2025 12:42
@serhiy-storchakaserhiy-storchaka merged commit5c942f1 intopython:mainOct 10, 2025
81 of 83 checks passed
@miss-islington-app
Copy link

Thanks@serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestOct 10, 2025
* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.* Detect decoding error in comments for UTF-8 encoding.* Include the decoding error position for default encoding in SyntaxError.(cherry picked from commit5c942f1)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@miss-islington-app
Copy link

Sorry,@serhiy-storchaka, I could not cleanly backport this to3.13 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 5c942f11cdf5f9d7313200983fa0c58b3bc670a2 3.13

@bedevere-app
Copy link

GH-139898 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelOct 10, 2025
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull requestOct 10, 2025
* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.* Detect decoding error in comments for UTF-8 encoding.* Include the decoding error position for default encoding in SyntaxError.(cherry picked from commit5c942f1)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchakaserhiy-storchaka removed the needs backport to 3.13bugs and security fixes labelOct 10, 2025
@bedevere-bot
Copy link

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

Hi! The buildbots390x RHEL9 3.14 (tier-3) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1696/builds/514) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1696/builds/514

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 CentOS9 NoGIL 3.14 (tier-1) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1733/builds/688) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1733/builds/688

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 FreeBSD 3.14 (tier-3) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1716/builds/567) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1716/builds/567

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotARM64 MacOS M1 NoGIL 3.14 (tier-2) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1680/builds/608) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1680/builds/608

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-arm64-aws.macos-with-brew.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbots390x Fedora Stable Clang 3.14 (tier-3) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1701/builds/470) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1701/builds/470

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotx86-64 MacOS Intel ASAN NoGIL 3.14 (tier-2) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1729/builds/533) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1729/builds/533

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 Fedora Stable 3.14 (tier-1) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1700/builds/420) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1700/builds/420

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 Windows Server 2022 NoGIL 3.14 (tier-1) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1717/builds/626) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1717/builds/626

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"C:\Users\Administrator\buildarea\3.14.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotx86 Debian Non-Debug with X 3.14 (no tier) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1687/builds/617) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1687/builds/617

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 FreeBSD14 3.14 (tier-3) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1740/builds/619) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1740/builds/619

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 Alpine Linux 3.14 (no tier) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1821/builds/104) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1821/builds/104

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotARM64 Raspbian Debug 3.14 (tier-3) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1824/builds/81) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1824/builds/81

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 Debian root 3.14 (tier-1) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1742/builds/566) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1742/builds/566

Failed tests:

  • test.test_asyncio.test_free_threading
  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 Fedora Stable Clang 3.14 (tier-2) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1748/builds/419) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1748/builds/419

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbots390x RHEL9 LTO + PGO 3.14 (tier-3) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1746/builds/516) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1746/builds/516

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotPPC64LE Fedora Stable 3.14 (tier-2) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1695/builds/298) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1695/builds/298

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbots390x Fedora Stable LTO + PGO 3.14 (tier-3) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1699/builds/469) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1699/builds/469

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotx86-64 MacOS Intel NoGIL 3.14 (tier-2) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1679/builds/536) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1679/builds/536

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbots390x Fedora Stable LTO 3.14 (tier-3) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1731/builds/467) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1731/builds/467

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbots390x RHEL9 LTO 3.14 (tier-3) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1743/builds/516) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1743/builds/516

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotPPC64LE Fedora Stable Clang 3.14 (tier-3) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1779/builds/301) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1779/builds/301

Failed tests:

  • test_external_inspection
  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error
  • test_only_active_thread - test.test_external_inspection.TestGetStackTrace.test_only_active_thread

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_external_inspection.py", line1246, intest_only_active_threadself.assertEqual(~~~~~~~~~~~~~~~~^len(gil_traces),1,"Should have exactly one GIL holder"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^    )^AssertionError:0 != 1 : Should have exactly one GIL holderTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 Windows10 3.14 (tier-1) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1711/builds/470) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1711/builds/470

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 Fedora Stable LTO + PGO 3.14 (tier-1) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1723/builds/419) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1723/builds/419

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotx86-64 macOS 3.14 (tier-2) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1712/builds/468) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1712/builds/468

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 Fedora Stable LTO 3.14 (tier-1) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1760/builds/419) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1760/builds/419

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 Ubuntu Shared 3.14 (tier-1) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1802/builds/475) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1802/builds/475

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotPPC64LE Fedora Stable LTO + PGO 3.14 (tier-2) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1805/builds/301) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1805/builds/301

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotPPC64LE Fedora Stable LTO 3.14 (tier-2) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1724/builds/299) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1724/builds/299

Failed tests:

  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@bedevere-bot
Copy link

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

Hi! The buildbotAMD64 Windows11 Bigmem 3.14 (tier-1) has failed when building commit9ff705c.

What do you need to do:

  1. Don't panic.
  2. Checkthe 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/#/builders/1799/builds/417) and take a look at the build logs.
  4. Check if the failure is related to this commit (9ff705c) 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/#/builders/1799/builds/417

Failed tests:

  • test_bigmem
  • test_source_encoding

Failed subtests:

  • test_utf8_bom_and_non_utf8_first_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_first_coding_line
  • test_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_third_line_error
  • test_non_utf8_second_line_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_second_line_error
  • test_utf_8_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf_8_non_utf8_third_line_error
  • test_utf8_bom_and_non_utf8_second_coding_line - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_and_non_utf8_second_coding_line
  • test_non_utf8_shebang_error - test.test_source_encoding.FileSourceEncodingTest.test_non_utf8_shebang_error
  • test_utf8_bom_non_utf8_third_line_error - test.test_source_encoding.FileSourceEncodingTest.test_utf8_bom_non_utf8_third_line_error

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

==

Click to see traceback logs
Traceback (most recent call last):  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line362, intest_utf_8_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line327, intest_non_utf8_shebang_errorself.check_script_error(src,br"Non-UTF-8 code starting with.* on line 1",~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            lineno=1)^^^^^^^^^  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line308, intest_utf8_bom_and_non_utf8_second_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line300, intest_utf8_bom_and_non_utf8_first_coding_lineself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"encoding problem: iso-8859-15 with BOM",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=1)^^^^^^^^^  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line352, intest_utf8_bom_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3|"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^br"'utf-8' codec can't decode byte",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line334, intest_non_utf8_second_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 2",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=2)^^^^^^^^^  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not NoneTraceback (most recent call last):  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line343, intest_non_utf8_third_line_errorself.check_script_error(src,~~~~~~~~~~~~~~~~~~~~~~~^^^^^br"Non-UTF-8 code starting with.* on line 3",^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^            lineno=3)^^^^^^^^^  File"R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line524, incheck_script_error    line= line.encode(sys.stderr.encoding, sys.stderr.errors)TypeError:encode() argument 'encoding' must be str, not None

@serhiy-storchakaserhiy-storchaka deleted the source-encoding branchOctober 20, 2025 09:08
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vstinnervstinnervstinner approved these changes

@pablogsalpablogsalAwaiting requested review from pablogsalpablogsal is a code owner

@lysnikolaoulysnikolaouAwaiting requested review from lysnikolaoulysnikolaou is a code owner

@iritkatrieliritkatrielAwaiting requested review from iritkatrieliritkatriel is a code owner

+1 more reviewer

@ashm-devashm-devashm-dev left review comments

Reviewers whose approvals may not affect merge requirements

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@serhiy-storchaka@bedevere-bot@vstinner@ashm-dev

[8]ページ先頭

©2009-2025 Movatter.jp