Update calendar.py and Add test_calendar.py from CPython 3.8.5#2174
Conversation
|
anybody has any idea what's happened to newline here? |
|
That error should be fixable in _codecs.py, that code is from python 2 so it just needs to be converted to use ord or not use chr, or something along those lines. |
|
@youknowone what do you mean? |
|
@coolreader18 See the failed test in windows CI. it seems the text is included in text file, but somehow it includes |
|
Oh, hmm -- we might need to change stdio to use raw/binary mode instead of text mode. I think I read a blog post about someone compressing an executable on windows and windows converted a |
|
https://docs.microsoft.com/en-us/cpp/c-runtime-library/text-and-binary-mode-file-i-o?view=vs-2019 Not sure if there's something to do this in Rust |
|
I marked skip as a temporary fix on all the 5 test cases that had errors in Windows. |
calendar.pyfrom CPython 3.8.5test_calendar.pytest_option_encodingthat caused error