Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Oct 1, 2025

  • 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
const char *line = tok->lineno <= 2 ? tok->buf : tok->cur;
int lineno = 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);
return 0;
}
}
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
const char *line = tok->lineno <= 2 ? tok->buf : tok->cur;
int lineno = 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);
return 0;
}
}
else {
PyObject *tmp = PyUnicode_Decode(line, strlen(line),
const int is_pseudo_line = (tok->lineno <= 2);
const char *line = is_pseudo_line ? tok->buf : tok->cur;
int lineno = is_pseudo_line ? 1 : tok->lineno;
size_t slen = strlen(line);
if (slen > (size_t)PY_SSIZE_T_MAX) {
_PyTokenizer_error_ret(tok);
return 0;
}
Py_ssize_t linelen = (Py_ssize_t)slen;
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);
return 0;
}
}
else {
PyObject *tmp = PyUnicode_Decode(line, linelen,

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

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

@serhiy-storchaka
Copy link
Member Author

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-storchaka serhiy-storchaka enabled auto-merge (squash) October 10, 2025 12:42
@serhiy-storchaka serhiy-storchaka merged commit 5c942f1 into python:main Oct 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 request Oct 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 commit 5c942f1)

Co-authored-by: Serhiy Storchaka <[email protected]>
@miss-islington-app
Copy link

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 5c942f11cdf5f9d7313200983fa0c58b3bc670a2 3.13

@bedevere-app
Copy link

bedevere-app bot commented Oct 10, 2025

GH-139898 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Oct 10, 2025
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Oct 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 commit 5c942f1)

Co-authored-by: Serhiy Storchaka <[email protected]>
@serhiy-storchaka serhiy-storchaka removed the needs backport to 3.13 bugs and security fixes label Oct 10, 2025
@bedevere-bot
Copy link

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

Hi! The buildbot s390x RHEL9 3.14 (tier-3) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot AMD64 CentOS9 NoGIL 3.14 (tier-1) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.itamaro-centos-aws.nogil/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot AMD64 FreeBSD 3.14 (tier-3) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-freebsd/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot ARM64 MacOS M1 NoGIL 3.14 (tier-2) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot s390x Fedora Stable Clang 3.14 (tier-3) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.clang/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_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 buildbot x86-64 MacOS Intel ASAN NoGIL 3.14 (tier-2) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot AMD64 Fedora Stable 3.14 (tier-1) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_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 buildbot AMD64 Windows Server 2022 NoGIL 3.14 (tier-1) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_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 buildbot x86 Debian Non-Debug with X 3.14 (no tier) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-debian-x86.nondebug/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot AMD64 FreeBSD14 3.14 (tier-3) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.opsec-fbsd14/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_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 buildbot AMD64 Alpine Linux 3.14 (no tier) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/buildbot/buildarea/3.14.ware-alpine/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_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 buildbot ARM64 Raspbian Debug 3.14 (tier-3) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/mnt/ssd/buildbot/buildarea/3.14.savannah-raspbian/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot AMD64 Debian root 3.14 (tier-1) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/root/buildarea/3.14.angelico-debian-amd64/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_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 buildbot AMD64 Fedora Stable Clang 3.14 (tier-2) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.clang/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_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 buildbot s390x RHEL9 LTO + PGO 3.14 (tier-3) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_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 buildbot PPC64LE Fedora Stable 3.14 (tier-2) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot s390x Fedora Stable LTO + PGO 3.14 (tier-3) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto-pgo/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot x86-64 MacOS Intel NoGIL 3.14 (tier-2) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.itamaro-macos-intel-aws.nogil/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot s390x Fedora Stable LTO 3.14 (tier-3) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-s390x.lto/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot s390x RHEL9 LTO 3.14 (tier-3) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-rhel9-s390x.lto/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_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 buildbot PPC64LE Fedora Stable Clang 3.14 (tier-3) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_external_inspection.py", line 1246, in test_only_active_thread
    self.assertEqual(
    ~~~~~~~~~~~~~~~~^
        len(gil_traces), 1, "Should have exactly one GIL holder"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: 0 != 1 : Should have exactly one GIL holder


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot AMD64 Windows10 3.14 (tier-1) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "D:\buildarea\3.14.bolen-windows10\build\Lib\test\test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_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 buildbot AMD64 Fedora Stable LTO + PGO 3.14 (tier-1) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


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", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot x86-64 macOS 3.14 (tier-2) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.14.billenstein-macos/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_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 buildbot AMD64 Fedora Stable LTO 3.14 (tier-1) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64.lto/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_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 buildbot AMD64 Ubuntu Shared 3.14 (tier-1) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.14.bolen-ubuntu/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_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 buildbot PPC64LE Fedora Stable LTO + PGO 3.14 (tier-2) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_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 buildbot PPC64LE Fedora Stable LTO 3.14 (tier-2) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_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 buildbot AMD64 Windows11 Bigmem 3.14 (tier-1) has failed when building commit 9ff705c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/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", line 362, in test_utf_8_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line 327, in test_non_utf8_shebang_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line 308, in test_utf8_bom_and_non_utf8_second_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line 300, in test_utf8_bom_and_non_utf8_first_coding_line
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line 352, in test_utf8_bom_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line 334, in test_non_utf8_second_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None


Traceback (most recent call last):
  File "R:\buildarea\3.14.ambv-bb-win11.bigmem\build\Lib\test\test_source_encoding.py", line 343, in test_non_utf8_third_line_error
    self.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", line 524, in check_script_error
    line = line.encode(sys.stderr.encoding, sys.stderr.errors)
TypeError: encode() argument 'encoding' must be str, not None

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants