Testing seems to work. Adding () after a function does wonders if you want that function to actually do anything (like flush the testing code to disk so that openscad actually has something to chew on ;)

This commit is contained in:
Elmom 2010-10-01 14:50:07 +03:00
parent dfeaa1f7df
commit 10889aa2fc

View file

@ -29,8 +29,8 @@ use <%s>
""" % (modpath, modname)
print code
f.write(code)
f.flush
output = call_openscad(path=fpath, stlpath=stlpath, timeout=0)
f.flush()
output = call_openscad(path=fpath, stlpath=stlpath, timeout=15)
print output
assert output[0] is 0
for s in ("warning", "error"):