Commits

Armin Rigo  committed c8d9d19

Check that pycparser was correctly installed, by checking that
lextab.py and yacctab.py are not regenerated at run-time.

  • Participants
  • Parent commits 822523c

Comments (0)

Files changed (1)

File testing/test_zintegration.py

         really_run_setup_and_program(dirname, venv_dir, python_snippet)
     finally:
         del sys._force_generic_engine_
+    # the two files lextab.py and yacctab.py are created by not-correctly-
+    # installed versions of pycparser.
+    assert not os.path.exists(str(SNIPPET_DIR.join(dirname, 'lextab.py')))
+    assert not os.path.exists(str(SNIPPET_DIR.join(dirname, 'yacctab.py')))
 
 def test_infrastructure():
     run_setup_and_program('infrastructure', '''