diff options
| author | Paul Moore <p.f.moore@gmail.com> | 2013-03-08 20:22:09 +0000 |
|---|---|---|
| committer | Paul Moore <p.f.moore@gmail.com> | 2013-03-08 20:22:09 +0000 |
| commit | 6975ea707de241ec0b42a37bdc899b2f960c71c9 (patch) | |
| tree | 2a4324e219fdfb8eefb43eb0adaba1b503f3faf7 /tests | |
| parent | 602bdbcd34823d2973a644a4c6867922c1e9380b (diff) | |
| download | virtualenv-6975ea707de241ec0b42a37bdc899b2f960c71c9.tar.gz | |
Fix test for relocatable scripts
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_virtualenv.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py index a29191a..8c5eb62 100644 --- a/tests/test_virtualenv.py +++ b/tests/test_virtualenv.py @@ -68,7 +68,7 @@ def test_activate_after_future_statements(): 'from __future__ import with_statement', 'from __future__ import print_function', '', - "import os; activate_this=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'activate_this.py'); execfile(activate_this, dict(__file__=activate_this)); del os, activate_this", + "import os; activate_this=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'activate_this.py'); exec(compile(open(activate_this).read(), activate_this, 'exec'), dict(__file__=activate_this)); del os, activate_this", '', 'print("Hello, world!")' ] |
