Skip to content

test262-harness.py complain cannot use a string pattern on a bytes-like object with running test262 with python3 #4853

@lygstate

Description

@lygstate
C:\work\study\languages\typescript\jerryscript>python tools/run-tests.py --test262-esnext=update
�[1;34mBuild command:�[0m
�[1;34mC:\Program Files\Python39\python.exe \�[0m
        �[1;34mC:\work\study\languages\typescript\jerryscript\tools\build.py \�[0m
        �[1;34m--profile=es.next \�[0m
        �[1;34m--function-to-string=on \�[0m
        �[1;34m--line-info=on \�[0m
        �[1;34m--error-messages=on \�[0m
        �[1;34m--mem-heap=20480 \�[0m
        �[1;34m--builddir=C:\work\study\languages\typescript\jerryscript\build\tests\test262_tests_esnext \�[0m
        �[1;34m--install=C:\work\study\languages\typescript\jerryscript\build\tests\test262_tests_esnext\local�[0m
�[1;34mTest command:�[0m
�[1;34mTZ='America/Los_Angeles' \�[0m
�[1;34mC:\Program Files\Python39\python.exe \�[0m
        �[1;34mC:\work\study\languages\typescript\jerryscript\tools\runners/run-test-suite-test262.py \�[0m
        �[1;34m--engine \�[0m
        �[1;34mC:\work\study\languages\typescript\jerryscript\build\tests\test262_tests_esnext\local\bin\jerry.exe \�[0m
        �[1;34m--test262-object \�[0m
        �[1;34m--test-dir \�[0m
        �[1;34mC:\work\study\languages\typescript\jerryscript\tests/test262 \�[0m
        �[1;34m--esnext \�[0m
        �[1;34mupdate�[0m
Traceback (most recent call last):
  File "C:\work\study\languages\typescript\jerryscript\tools\runners\test262-harness.py", line 954, in <module>
    sys.exit(main())
  File "C:\work\study\languages\typescript\jerryscript\tools\runners\test262-harness.py", line 944, in main
    code = test_suite.run(options.command, args,
  File "C:\work\study\languages\typescript\jerryscript\tools\runners\test262-harness.py", line 849, in run
    cases = self.enumerate_tests(tests, command_template)
  File "C:\work\study\languages\typescript\jerryscript\tools\runners\test262-harness.py", line 796, in enumerate_tests
    strict_case = TestCase(self, name, full_path, True, command_template, self.module_flag)
  File "C:\work\study\languages\typescript\jerryscript\tools\runners\test262-harness.py", line 500, in __init__
    test_record = parse_test_record(self.contents, name)
  File "C:\work\study\languages\typescript\jerryscript\tools\runners\test262-harness.py", line 283, in parse_test_record
    header = find_license(src)
  File "C:\work\study\languages\typescript\jerryscript\tools\runners\test262-harness.py", line 266, in find_license
    match = _LICENSE_PATTERN.search(src)
TypeError: cannot use a string pattern on a bytes-like object
=== Summary - updating excludelist ===

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions