Cross Reference: test_eval.py
xref: /gem5/ext/pybind11/tests/test_eval.py
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /gem5/ext/pybind11/tests/
test_eval.py revision 12391
112855Sgabeblack@google.comimport os
212855Sgabeblack@google.comfrom pybind11_tests import eval_ as m
312855Sgabeblack@google.com
412855Sgabeblack@google.com
512855Sgabeblack@google.comdef test_evals(capture):
612855Sgabeblack@google.com    with capture:
712855Sgabeblack@google.com        assert m.test_eval_statements()
812855Sgabeblack@google.com    assert capture == "Hello World!"
912855Sgabeblack@google.com
1012855Sgabeblack@google.com    assert m.test_eval()
1112855Sgabeblack@google.com    assert m.test_eval_single_statement()
1212855Sgabeblack@google.com
1312855Sgabeblack@google.com    filename = os.path.join(os.path.dirname(__file__), "test_eval_call.py")
1412855Sgabeblack@google.com    assert m.test_eval_file(filename)
1512855Sgabeblack@google.com
1612855Sgabeblack@google.com    assert m.test_eval_failure()
1712855Sgabeblack@google.com    assert m.test_eval_file_failure()
1812855Sgabeblack@google.com

Indexes created Thu Sep 26 06:36:22 EDT 2019