New submission from Steve Dower <steve.do...@python.org>:

These tests rely on MSVC to do some building, but Windows ARM devices do not 
currently have a compiler toolset (you need to cross-compile).

We should skip these tests.

Sample build: https://buildbot.python.org/all/#/builders/182/builds/773

Sample traceback: 
======================================================================
ERROR: test_error_in_rules (test.test_peg_generator.test_c_parser.TestCParser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\python\lib\test\test_peg_generator\test_c_parser.py", line 404, in 
test_error_in_rules
    self.run_test(grammar_source, test_source)
  File "C:\python\lib\test\test_peg_generator\test_c_parser.py", line 83, in 
run_test
    self.build_extension(grammar_source)
  File "C:\python\lib\test\test_peg_generator\test_c_parser.py", line 80, in 
build_extension
    generate_parser_c_extension(grammar, Path(self.tmp_path))
  File "C:\python\Tools\peg_generator\pegen\testutil.py", line 104, in 
generate_parser_c_extension
    compile_c_extension(str(source), build_dir=str(path))
  File "C:\python\Tools\peg_generator\pegen\build.py", line 90, in 
compile_c_extension
    cmd.run()
  File "C:\python\lib\distutils\command\build_ext.py", line 340, in run
    self.build_extensions()
  File "C:\python\lib\distutils\command\build_ext.py", line 449, in 
build_extensions
    self._build_extensions_serial()
  File "C:\python\lib\distutils\command\build_ext.py", line 474, in 
_build_extensions_serial
    self.build_extension(ext)
  File "C:\python\lib\distutils\command\build_ext.py", line 529, in 
build_extension
    objects = self.compiler.compile(sources,
  File "C:\python\lib\distutils\_msvccompiler.py", line 323, in compile
    self.initialize()
  File "C:\python\lib\distutils\_msvccompiler.py", line 220, in initialize
    vc_env = _get_vc_env(plat_spec)
  File "C:\python\lib\distutils\_msvccompiler.py", line 122, in _get_vc_env
    raise DistutilsPlatformError("Unable to find vcvarsall.bat")
distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat

----------
components: Tests, Windows
messages: 372699
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: test_peg_generator C tests fail on Windows ARM
versions: Python 3.10, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41172>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to