Added intersection tool to Drawing Tool.
This commit is contained in:
34
tests/destructor_test.py
Normal file
34
tests/destructor_test.py
Normal file
@@ -0,0 +1,34 @@
|
||||
from time import sleep
|
||||
from PyQt4 import QtCore
|
||||
from FlatCAMWorker import Worker
|
||||
|
||||
class MyObj():
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
print "##### Distroyed ######"
|
||||
|
||||
|
||||
def parse():
|
||||
o = MyObj()
|
||||
raise Exception("Intentional Exception")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
qo = QtCore.QObject
|
||||
worker = Worker(qo)
|
||||
thr1 = QtCore.QThread()
|
||||
worker.moveToThread(thr1)
|
||||
qo.connect(thr1, QtCore.SIGNAL("started()"), worker.run)
|
||||
thr1.start()
|
||||
|
||||
while True:
|
||||
try:
|
||||
parse()
|
||||
print "Parse returned."
|
||||
except Exception:
|
||||
pass
|
||||
sleep(5)
|
||||
print "Competed successfully."
|
||||
@@ -0,0 +1,6 @@
|
||||
import cProfile
|
||||
import pstats
|
||||
from camlib import *
|
||||
|
||||
g = Geometry()
|
||||
|
||||
Reference in New Issue
Block a user