Commits

Anonymous committed d600094

test_print to check CArrayWrap.print_array works

  • Participants
  • Parent commits 55af1d8

Comments (0)

Files changed (1)

carraygetwrap/test_print.py

+import numpy
+from carraygetwrap import *
+
+caw = CArrayWrap(2,10)
+a = caw.get_array()
+a[:] = numpy.arange(numpy.prod(a.shape)).reshape(a.shape)
+
+print "caw.print_array()"
+caw.print_array()
+print "print a"
+print a
+print "del caw"
+del caw
+print "print a"
+print a