fix test to work with old and new repr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6323 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
48d1b19bb7
commit
dfe230354c
3 changed files with 12 additions and 15 deletions
|
|
@ -12,7 +12,7 @@ except:
|
||||||
print d, "is not an instance"
|
print d, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % d)[1]
|
s = '%s' % d
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print d, "is not an ArithUnaryFunction"
|
print d, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
@ -24,7 +24,7 @@ except:
|
||||||
print e, "is not an instance"
|
print e, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % e)[1]
|
s = '%s' % e
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print e, "is not an ArithUnaryFunction"
|
print e, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
@ -41,7 +41,7 @@ except:
|
||||||
print c, "is not an instance"
|
print c, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % c)[1]
|
s = '%s' % c
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print c, "is not an ArithUnaryFunction"
|
print c, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
@ -53,7 +53,7 @@ except:
|
||||||
print f, "is not an instance"
|
print f, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % f)[1]
|
s = '%s' % f
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print f, "is not an ArithUnaryFunction"
|
print f, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
@ -69,7 +69,7 @@ except:
|
||||||
print g, "is not an instance"
|
print g, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % g)[1]
|
s = '%s' % g
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print g, "is not an ArithUnaryFunction"
|
print g, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
@ -82,7 +82,7 @@ except:
|
||||||
print h, "is not an instance"
|
print h, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % h)[1]
|
s = '%s' % h
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print h, "is not an ArithUnaryFunction"
|
print h, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ except:
|
||||||
print d, "is not an instance"
|
print d, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % d)[1]
|
s = '%s' % d
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print d, "is not an ArithUnaryFunction"
|
print d, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
@ -24,7 +24,7 @@ except:
|
||||||
print e, "is not an instance"
|
print e, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % e)[1]
|
s = '%s' % e
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print e, "is not an ArithUnaryFunction"
|
print e, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
@ -41,7 +41,7 @@ except:
|
||||||
print c, "is not an instance"
|
print c, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % c)[1]
|
s = '%s' % c
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print c, "is not an ArithUnaryFunction"
|
print c, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
@ -53,7 +53,7 @@ except:
|
||||||
print f, "is not an instance"
|
print f, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % f)[1]
|
s = '%s' % f
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print f, "is not an ArithUnaryFunction"
|
print f, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
@ -69,7 +69,7 @@ except:
|
||||||
print g, "is not an instance"
|
print g, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % g)[1]
|
s = '%s' % g
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print g, "is not an ArithUnaryFunction"
|
print g, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
@ -82,7 +82,7 @@ except:
|
||||||
print h, "is not an instance"
|
print h, "is not an instance"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
s = string.split('%s' % h)[1]
|
s = '%s' % h
|
||||||
if string.find(s, 'ArithUnaryFunction') == -1:
|
if string.find(s, 'ArithUnaryFunction') == -1:
|
||||||
print h, "is not an ArithUnaryFunction"
|
print h, "is not an ArithUnaryFunction"
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,6 @@ except:
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
|
|
||||||
# the old large format
|
|
||||||
if not SWIG_TypeQuery("vfncs::ArithUnaryFunction<vfncs::arith_traits<float,float>::argument_type,vfncs::arith_traits<float,float >::result_type > *"):
|
|
||||||
raise RuntimeError
|
|
||||||
|
|
||||||
# the reduced format
|
# the reduced format
|
||||||
if not SWIG_TypeQuery("vfncs::ArithUnaryFunction<double,double> *"):
|
if not SWIG_TypeQuery("vfncs::ArithUnaryFunction<double,double> *"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue