summaryrefslogtreecommitdiff
path: root/test/backtest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-12-27 20:53:31 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-12-27 20:53:31 -0500
commitcd1929b269118e6f335aea74165e9366b3c3ac42 (patch)
tree61be090f081854cce5f0dadba9f761578c2deeab /test/backtest.py
parent291ec95b6c17c28371280e7dcde58b1cc9dd6a82 (diff)
downloadpython-coveragepy-git-cd1929b269118e6f335aea74165e9366b3c3ac42.tar.gz
The reload builtin moved in Py3k.
Diffstat (limited to 'test/backtest.py')
-rw-r--r--test/backtest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/backtest.py b/test/backtest.py
index 4460a78d..656b35c7 100644
--- a/test/backtest.py
+++ b/test/backtest.py
@@ -47,3 +47,9 @@ except NameError:
def execfile(filename, globs):
"""A Python 3 implementation of execfile."""
exec(compile(open(filename).read(), filename, 'exec'), globs)
+
+# reload moved in Py3k
+try:
+ from imp import reload
+except:
+ reload = reload