Skip to content

Commit

Permalink
Try to release objects from examples in a sensible order.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.salilab.org/imp/trunk@12794 e91f8c7b-0e32-4433-a9ac-4502d39a4eab
  • Loading branch information
ben@SALILAB.ORG authored and ben@SALILAB.ORG committed Feb 22, 2012
1 parent 13da8b3 commit d4456a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scons_tools/run-all-examples.py
Expand Up @@ -55,7 +55,12 @@ def test_example(filename, shortname, disabled_modules):
def test_run_example(self):
"Run example %s"
%s
self.run_example("%s")
v = self.run_example("%s")
# Try to release example objects in a sensible order
module_type = type(IMP)
for x in v.keys():
if x != '__builtins__' and type(x) != module_type:
del v[x]
return""" % (shortname, skip, filename))
return RunExample("test_run_example")

Expand Down

0 comments on commit d4456a0

Please sign in to comment.