You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
560 B

3 months ago
  1. import os
  2. def test_evals(capture):
  3. from pybind11_tests import (test_eval_statements, test_eval, test_eval_single_statement,
  4. test_eval_file, test_eval_failure, test_eval_file_failure)
  5. with capture:
  6. assert test_eval_statements()
  7. assert capture == "Hello World!"
  8. assert test_eval()
  9. assert test_eval_single_statement()
  10. filename = os.path.join(os.path.dirname(__file__), "test_eval_call.py")
  11. assert test_eval_file(filename)
  12. assert test_eval_failure()
  13. assert test_eval_file_failure()