nose-devs/nose — Issue #155: Colon in directory name treated as testname separator
Author: jpellerin
Created: 2011-12-14 16:02:03+00:00
State: closed

What steps will reproduce the problem?
1. mkdir foo:bar
2. cd foo:bar
3. echo 'def test_foo(): pass' > test_foo.py
4. nosetests

What is the expected output? What do you see instead?

Expected: test run passes
Got:

======================================================================
ERROR: Failure: (Can't find callable
bar/test_foo.py in file /home/john/foo: file is not a python module)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/john/src/nose/nose/case.py", line 35, in runTest
raise self.exc_class(self.exc_val)
ValueError: Can't find callable bar/test_foo.py in file /home/john/foo:
file is not a python module

----------------------------------------------------------------------
Ran 1 test in 0.008s

FAILED (errors=1)

What version of the product are you using? On what operating system?

http://python-nose.googlecode.com/svn/trunk revision 390

Please provide any additional information below.

In case you're wondering, this happened to me because my SVN release tags
contain the date and time in ISO format.

Probably this can be fixed by having nose.util.split_test_name do the split
on ':' only on the os.path.basename(), not the full path. I don't see a
test, so I'm slightly scared to change it...

Google Code Info:
Issue #: 121
Author: j...@pobox.com
Created On: 2007-10-21T23:00:48.000Z
Closed On: 2007-12-15T03:07:29.000Z