source: trunk/environments/g4py/tests/test04/test3.py @ 1337

Last change on this file since 1337 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

  • Property svn:executable set to *
File size: 742 bytes
Line 
1#!/usr/bin/python
2# ==================================================================
3# python script for Geant4Py test
4#
5# This script is just for test use. It will crash.
6# ==================================================================
7import test04, sys
8
9print "*** This script is just for test use. It will crash!"
10
11ctrack= test04.Track()
12print "<<< ref#(ctrack)=", sys.getrefcount(ctrack)
13cstep= ctrack.GetStep3()
14print "<<< ref#(ctrack, cstep)=",\
15      sys.getrefcount(ctrack),\
16      sys.getrefcount(cstep)
17del cstep
18print "<<< delete cstep"
19print "<<< ref#(ctrack)=", sys.getrefcount(ctrack)
20
21
22print ""
23cstep= ctrack.GetStep3()
24cstep= test04.Step()
25print "<<< previous step is still remain?"
26
27
28print ""
29print "--- stderr ---"
30
31
Note: See TracBrowser for help on using the repository browser.