hRobert12 / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

using more than one relative path breaks nose #364

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Reproduce bug by running nose using:  "-w ../aaa/aaa2 ../bbb".
Instead of considering ../bbb as relative to the value of CWD at time of the 
command line execution, nose will use the changed current directory and will  
complain about some not existing path that does not make too much sense.

Nose must save the current directory and transform all relative paths to 
absolute ones before starting to parse the directory tree, or at least to 
chdir(saved_cwd) before starting to process another -w parameter.

Original issue reported on code.google.com by sorin.sb...@gmail.com on 15 Sep 2010 at 12:03

GoogleCodeExporter commented 8 years ago
If you need an example, you can use the one that I attached here
http://bitbucket.org/ned/coveragepy/issue/91/coverage-fails-to-run-invoking-impr
operly-no-data-to

Just remove the comment from line: "../bbb" (aaa/run-nosetests.py)
Thanks.

Original comment by sorin.sb...@gmail.com on 15 Sep 2010 at 12:59