summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Cardona <remi.cardona@free.fr>2014-08-25 21:48:28 +0200
committerRémi Cardona <remi.cardona@free.fr>2014-08-25 21:48:28 +0200
commit2b4e8cb6b0637a2953c8cf5cba6a5bce2b79eb2a (patch)
tree09ee2f398bcbab86a00073bd7f27359a28465505
parent16e1bd8858543582bc069a5d6c37c075fafa3461 (diff)
downloadlogilab-common-2b4e8cb6b0637a2953c8cf5cba6a5bce2b79eb2a.tar.gz
[py3k] execfile no longer exists
-rw-r--r--pytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pytest.py b/pytest.py
index 95e646a..0e3bfea 100644
--- a/pytest.py
+++ b/pytest.py
@@ -206,7 +206,7 @@ def load_pytest_conf(path, parser):
and / or tester.
"""
namespace = {}
- execfile(path, namespace)
+ exec(open(path, 'rb').read(), namespace)
if 'update_parser' in namespace:
namespace['update_parser'](parser)
return namespace.get('CustomPyTester', PyTester)