Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing fails because iptest.py cannot be found #3480

Closed
vitaut opened this issue Jun 29, 2013 · 0 comments · Fixed by #3482
Closed

Testing fails because iptest.py cannot be found #3480

vitaut opened this issue Jun 29, 2013 · 0 comments · Fixed by #3482
Milestone

Comments

@vitaut
Copy link
Contributor

vitaut commented Jun 29, 2013

When trying to run the tests using the command

$ python -c "import IPython; IPython.test()"

as suggested in the documentation I get the following errors:

**********************************************************************
IPython test group: IPython.config
/usr/bin/python: can't open file 'IPython/testing/iptest.py': [Errno 2] No such file or directory
**********************************************************************
IPython test group: IPython.core
/usr/bin/python: can't open file 'IPython/testing/iptest.py': [Errno 2] No such file or directory
...

and all the tests fail.

Replacing line 384 of iptest.py with the following

subp = subprocess.Popen(["python", "-c", "import os; print os.getcwd()"], env=env)

and rerunning the tests reveals that python starts in the /tmp directory which explains why IPython/testing/iptest.py is not found, although it is not clear why it happens.

I am using the latest version of IPython from the repository and Python 2.7.4 on Ubuntu 13.04.

@ivanov ivanov closed this as completed in 6222348 Jun 29, 2013
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
Use an absolute path to iptest, closes ipython#3480
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant