Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lygstate opened this issue Dec 7, 2021 · 0 comments · May be fixed by #4857

Comments

@lygstate
Copy link
Contributor

lygstate commented Dec 7, 2021

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 ===
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 7, 2021
…tes-like object with running test262 with python3

For reading/writing to file, we use 'utf8' /'ignore' encoding for not lost characters.
For decoding from process stdout, using native encoding with decoding error ignored for not lost data.
Execute commands also ignore errors
Fixes jerryscript-project#4853

JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 7, 2021
…tes-like object with running test262 with python3

For reading/writing to file, we use 'utf8' /'ignore' encoding for not lost characters.
For decoding from process stdout, using native encoding with decoding error ignored for not lost data.
Execute commands also ignore errors
Fixes jerryscript-project#4853

JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 7, 2021
…tes-like object with running test262 with python3

For reading/writing to file, we use 'utf8' /'ignore' encoding for not lost characters.
For decoding from process stdout, using native encoding with decoding error ignored for not lost data.
Execute commands also ignore errors
Fixes jerryscript-project#4853

JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant