This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2020-10-05.08:48:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601887687.95.0.739602877312.issue41940@roundup.psfhosted.org>
In-reply-to
Content
Why do downloaded files start with <!DOCTYPE?

AMD64 Debian root 3.x:
https://buildbot.python.org/all/#/builders/345/builds/132

5 tests failed:
    test_codecmaps_cn test_codecmaps_jp test_codecmaps_kr
    test_codecmaps_tw test_hashlib

I'm not sure if all failures are download issues.


Examples:

ERROR: test_mapping_file (test.test_codecmaps_kr.TestCP949Map)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/multibytecodec_support.py", line 305, in test_mapping_file
    self._test_mapping_file_plain()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/multibytecodec_support.py", line 319, in _test_mapping_file_plain
    csetval = eval(data[0])
  File "<string>", line 1
    <!DOCTYPE
    ^
SyntaxError: invalid syntax


ERROR: test_named_sequences_full (test.test_ucn.UnicodeNamesTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ucn.py", line 181, in test_named_sequences_full
    testdata = support.open_urlresource(url, encoding="utf-8",
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/__init__.py", line 540, in open_urlresource
    raise TestFailed('invalid resource %r' % fn)
test.support.TestFailed: invalid resource '/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/data/NamedSequences.txt'


ERROR: test_blake2b_vectors (test.test_hashlib.HashLibTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_hashlib.py", line 733, in test_blake2b_vectors
    for msg, key, md in read_vectors('blake2b'):
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_hashlib.py", line 85, in read_vectors
    parts[0] = bytes.fromhex(parts[0])
ValueError: non-hexadecimal number found in fromhex() arg at position 0



AMD64 Debian root 3.9 has similar issues.
History
Date User Action Args
2020-10-05 08:48:07vstinnersetrecipients: + vstinner
2020-10-05 08:48:07vstinnersetmessageid: <1601887687.95.0.739602877312.issue41940@roundup.psfhosted.org>
2020-10-05 08:48:07vstinnerlinkissue41940 messages
2020-10-05 08:48:07vstinnercreate