This website requires JavaScript.
Explore
Help
Sign In
Zengtudor
/
pybind11
Watch
1
Star
0
Fork
0
You've already forked pybind11
mirror of
https://github.com/pybind/pybind11.git
synced
2024-11-26 07:02:11 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
81511be341
pybind11
/
tests
/
test_eval_call.py
5 lines
90 B
Python
Raw
Normal View
History
Unescape
Escape
Port tests to pytest Use simple asserts and pytest's powerful introspection to make testing simpler. This merges the old .py/.ref file pairs into simple .py files where the expected values are right next to the code being tested. This commit does not touch the C++ part of the code and replicates the Python tests exactly like the old .ref-file-based approach.
2016-08-12 11:50:00 +00:00
# This file is called from 'test_eval.py'
Rewrite eval tests to allow for simple asserts Most of the test code is left in C++ since this is the intended use case for the eval functions.
2016-08-18 14:55:26 +00:00
if
'
call_test2
'
in
locals
(
)
:
Port tests to pytest Use simple asserts and pytest's powerful introspection to make testing simpler. This merges the old .py/.ref file pairs into simple .py files where the expected values are right next to the code being tested. This commit does not touch the C++ part of the code and replicates the Python tests exactly like the old .ref-file-based approach.
2016-08-12 11:50:00 +00:00
call_test2
(
y
)
Reference in New Issue
Copy Permalink