summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/python/test/operators_wrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/python/test/operators_wrapper.py')
-rw-r--r--src/boost/libs/python/test/operators_wrapper.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/boost/libs/python/test/operators_wrapper.py b/src/boost/libs/python/test/operators_wrapper.py
new file mode 100644
index 000000000..6c889b0a3
--- /dev/null
+++ b/src/boost/libs/python/test/operators_wrapper.py
@@ -0,0 +1,11 @@
+from operators_wrapper_ext import *
+
+class D2(vector): pass
+d2 = D2()
+
+for lhs in (v,d,d2):
+ -lhs
+ for rhs in (v,d,d2):
+ lhs + rhs
+ lhs += rhs
+