File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -60,4 +60,22 @@ boost-python-runtest test2
6060 : # Python test driver
6161 test_getting_started2.py
6262 # extension modules to use
63- <pyd>getting_started2 ;
63+ <pyd>getting_started2 ;
64+
65+ # ----- std_pair -------
66+
67+ # Declare a Python extension called std_pair
68+ extension std_pair_ext
69+ : # sources
70+ std_pair.cpp
71+
72+ # requirements and dependencies for Boost.Python extensions
73+ <template>@boost/libs/python/build/extension
74+ ;
75+
76+ # Declare a test for the extension module
77+ boost-python-runtest test3
78+ : # Python test driver
79+ test_std_pair.py
80+ # extension modules to use
81+ <pyd>std_pair_ext ;
Original file line number Diff line number Diff line change 1+ import std_pair_ext
2+ assert std_pair_ext .foo () == (3 , 5 )
3+ print "OK"
You can’t perform that action at this time.
0 commit comments