[Webkit-unassigned] [Bug 221855] New: _W3CTestConverter doesn't run on Windows

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 12 16:06:15 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=221855

            Bug ID: 221855
           Summary: _W3CTestConverter doesn't run on Windows
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: don.olmstead at sony.com
            Blocks: 221815

When running Tools/Scripts/test-webkitpy on Windows saw the following when running the webkitpy.w3c.test_converter_unittest.W3CTestConverterTest test suite.

  Traceback (most recent call last):
    File "C:\tools\python3\lib\sre_parse.py", line 1039, in parse_template
      this = chr(ESCAPES[this][1])
  KeyError: '\\L'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "C:\webkit\Tools\Scripts\webkitpy\w3c\test_converter_unittest.py", line 89, in 
test_convert_for_webkit_nothing_to_convert
      converter.feed(test_html)
    File "C:\tools\python3\lib\html\parser.py", line 110, in feed
      self.goahead(0)
    File "C:\tools\python3\lib\html\parser.py", line 170, in goahead
      k = self.parse_starttag(i)
    File "C:\tools\python3\lib\html\parser.py", line 342, in parse_starttag
      self.handle_startendtag(tag, attrs)
    File "C:\webkit\Tools\Scripts\webkitpy\w3c\test_converter.py", line 258, in handle_startendtag
      self.convert_attributes_if_needed(tag, attrs)
    File "C:\webkit\Tools\Scripts\webkitpy\w3c\test_converter.py", line 214, in convert_attributes_if_needed
      new_path = re.sub(self.test_harness_re, self.new_test_harness_path + '/testharness', attr[1])
    File "C:\tools\python3\lib\re.py", line 210, in sub
      return _compile(pattern, flags).sub(repl, string, count)

    File "C:\tools\python3\lib\re.py", line 327, in _subx
      template = _compile_repl(template, pattern)
    File "C:\tools\python3\lib\re.py", line 318, in _compile_repl
      return sre_parse.parse_template(repl, pattern)
    File "C:\tools\python3\lib\sre_parse.py", line 1042, in parse_template

      raise s.error('bad escape %s' % this, len(this))
  re.error: bad escape \L at position 8

The issue stems from Window's path separator being '\' which gets used when creating a regex.


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=221815
[Bug 221815] [Meta] Pass test-webkitpy on Windows Python 3
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210213/8f86fade/attachment-0001.htm>


More information about the webkit-unassigned mailing list