mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
0d70f0e18e
* Error out eval_file * Enable dynamic attribute support for Pypy >= 6 * Add a test for dynamic attribute support * Skip test for eval_file on pypy * Workaround for __qualname__ on PyPy3 * Add a PyPy3.6 7.3.0 build * Only disable in PyPy3 * Fix travis testing * No numpy and scipy for pypy * Enable test on pypy2 * Fix logic in eval_file * Skip a few tests due to bugs in PyPy * scipy wheels are broken. make pypy2 a failrue Co-authored-by: Andreas Kloeckner <inform@tiker.net>
23 lines
492 B
Python
23 lines
492 B
Python
import os
|
|
import pytest
|
|
from pybind11_tests import eval_ as m
|
|
|
|
|
|
def test_evals(capture):
|
|
with capture:
|
|
assert m.test_eval_statements()
|
|
assert capture == "Hello World!"
|
|
|
|
assert m.test_eval()
|
|
assert m.test_eval_single_statement()
|
|
|
|
assert m.test_eval_failure()
|
|
|
|
|
|
@pytest.unsupported_on_pypy3
|
|
def test_eval_file():
|
|
filename = os.path.join(os.path.dirname(__file__), "test_eval_call.py")
|
|
assert m.test_eval_file(filename)
|
|
|
|
assert m.test_eval_file_failure()
|