summaryrefslogtreecommitdiffstats
path: root/test/SWIG/build-dir.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/SWIG/build-dir.py')
-rw-r--r--test/SWIG/build-dir.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/SWIG/build-dir.py b/test/SWIG/build-dir.py
index 593a26a..58ad0cd 100644
--- a/test/SWIG/build-dir.py
+++ b/test/SWIG/build-dir.py
@@ -37,6 +37,11 @@ import TestSCons
test = TestSCons.TestSCons()
+swig = test.where_is('swig')
+
+if not swig:
+ test.skip_test('Can not find installed "swig", skipping test.\n')
+
# swig-python expects specific filenames.
# the platform specific suffix won't necessarily work.
if sys.platform == 'win32':
@@ -129,9 +134,6 @@ public:
%extend
{
const char* __str__() { return "linalg.Vector()"; }
- int __len__() { return $self->size(); }
- double __getitem__(int key) { return $self->operator[](key); }
- void __setitem__(int key, double value) { $self->operator[](key) = value; }
%pythoncode %{
def __iter__(self):