Skip to content

tap2junit/build/python nightly failed with unicode problem #31225

Open
@sam-github

Description

@sam-github
00:21:52   File "/usr/local/lib/python2.7/site-packages/yaml/reader.py", line 144, in check_printable
00:21:52     'unicode', "special characters are not allowed")
00:21:52 yaml.reader.ReaderError: unacceptable character #x001b: special characters are not allowed

Nightly build from 2 days ago:

00:21:51 + tap2junit -i test.tap -o test.xml
00:21:52 Traceback (most recent call last):
00:21:52   File "/usr/local/bin/tap2junit", line 10, in <module>
00:21:52     sys.exit(main())
00:21:52   File "/usr/local/lib/python2.7/site-packages/tap2junit/__main__.py", line 51, in main
00:21:52     convert(args.input, args.output)
00:21:52   File "/usr/local/lib/python2.7/site-packages/tap2junit/__main__.py", line 42, in convert
00:21:52     result = parse(input_file, data)
00:21:52   File "/usr/local/lib/python2.7/site-packages/tap2junit/__main__.py", line 34, in parse
00:21:52     tap_parser.parse(data)
00:21:52   File "/usr/local/lib/python2.7/site-packages/tap2junit/tap13.py", line 147, in parse
00:21:52     self._parse(StringIO.StringIO(source))
00:21:52   File "/usr/local/lib/python2.7/site-packages/tap2junit/tap13.py", line 78, in _parse
00:21:52     self.tests[-1].yaml = yamlish.load(self.tests[-1].yaml_buffer)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yamlish.py", line 222, in load
00:21:52     out = load('\n'.join(inobj), ignore_wrong_characters)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yamlish.py", line 203, in load
00:21:52     out = yaml.load(source, Loader=_YamlishLoader)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yaml/__init__.py", line 69, in load
00:21:52     loader = Loader(stream)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yamlish.py", line 145, in __init__
00:21:52     yaml.loader.SafeLoader.__init__(self, stream)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yaml/loader.py", line 24, in __init__
00:21:52     Reader.__init__(self, stream)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yaml/reader.py", line 74, in __init__
00:21:52     self.check_printable(stream)
00:21:52   File "/usr/local/lib/python2.7/site-packages/yaml/reader.py", line 144, in check_printable
00:21:52     'unicode', "special characters are not allowed")
00:21:52 yaml.reader.ReaderError: unacceptable character #x001b: special characters are not allowed
00:21:52   in "<unicode string>", position 114

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.pythonPRs and issues that require attention from people who are familiar with Python.testIssues and PRs related to the tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions