test_eval.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 import os
3 
4 import pytest
5 
6 import env # noqa: F401
7 
8 from pybind11_tests import eval_ as m
9 
10 
11 def test_evals(capture):
12  with capture:
13  assert m.test_eval_statements()
14  assert capture == "Hello World!"
15 
16  assert m.test_eval()
17  assert m.test_eval_single_statement()
18 
19  assert m.test_eval_failure()
20 
21 
22 @pytest.mark.xfail("env.PYPY and not env.PY2", raises=RuntimeError)
24  filename = os.path.join(os.path.dirname(__file__), "test_eval_call.py")
25  assert m.test_eval_file(filename)
26 
27  assert m.test_eval_file_failure()
def test_eval_file()
Definition: test_eval.py:23
def test_evals(capture)
Definition: test_eval.py:11


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:46:03