Commits

Geoffrey Sneddon  committed b5af9cd

Manually pass globals and locals to cProfile to work around bug in it.

  • Participants
  • Parent commits d91fd1a

Comments (0)

Files changed (1)

File anolislib/generator.py

         try:
             import cProfile
             import pstats
-            cProfile.run("process(tree, processes, **kwargs)", statfile)
+            cProfile.runctx("process(tree, processes, **kwargs)", globals(),
+                            locals(), statfile)
             stats = pstats.Stats(statfile)
         except None:
             import hotshot