-
-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ubuntu-bionic-standard (python 3.6): make ptest fails with UnicodeDecodeError #31191
Comments
comment:1
Unclear where this is coming from - perhaps a source file without |
comment:2
Something has changed on The specific failure can be fixed like this: diff --git a/src/sage/doctest/control.py b/src/sage/doctest/control.py
index 7d2b84b9c3..ef5ec5c2e5 100644
--- a/src/sage/doctest/control.py
+++ b/src/sage/doctest/control.py
@@ -223,7 +223,7 @@ def skipfile(filename):
base, ext = os.path.splitext(filename)
if ext not in ('.py', '.pyx', '.pxd', '.pxi', '.sage', '.spyx', '.rst', '.tex'):
return True
- with open(filename) as F:
+ with open(filename, encoding="utf-8", errors="ignore") as F:
line_count = 0
for line in F:
if nodoctest_regex.match(line): but after that some individual doctest have similar unicode errors. |
comment:3
Likely this patch has made its way into ubuntu-bionic security updates. https://github.com/python/cpython/pull/8975/files |
comment:4
That patch makes it sound as if the change is specific to FreeBSD, but I don't see that in the actual changes. |
This comment has been minimized.
This comment has been minimized.
Commit: |
Author: Matthias Koeppe |
Reviewer: Jonathan Kliem |
comment:8
I think it is fine. |
comment:9
Thanks for testing! I didn't expect difficulties |
comment:10
LGTM. |
comment:11
Thank you! |
Changed branch from u/mkoeppe/ubuntu_bionic_standard__python_3_6___make_ptest_fails_with_unicodedecodeerror to |
(from #29913)
https://github.com/mkoeppe/sage/runs/1583194874?check_suite_focus=true
We apply a simple fix similar to the one in #30576.
To test:
tox -e docker-ubuntu-bionic-standard
CC: @kliem @dimpase @jhpalmieri
Component: doctest framework
Author: Matthias Koeppe
Branch/Commit:
c674c57
Reviewer: Jonathan Kliem
Issue created by migration from https://trac.sagemath.org/ticket/31191
The text was updated successfully, but these errors were encountered: