nose-devs/nose — Issue #49: Nose fails to load tests from a file with name that has no .py extension 
Author: jpellerin
Created: 2011-12-14 15:57:08+00:00
State: open

What steps will reproduce the problem?

$ nosetests -v --with-doctest some-script
Failure: ValueError (Unable to load tests from file
/home/itkach/some-script) ... ERROR

======================================================================
ERROR: Failure: ValueError (Unable to load tests from file
/home/itkach/some-script)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/nose/loader.py", line 206, in
loadTestsFromFile
% filename)
ValueError: Unable to load tests from file /home/itkach/some-script

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)

$ mv some-script some-script.py
$ nosetests -v --with-doctest some-script.py
Doctest: some-script.a ... ok

----------------------------------------------------------------------
Ran 1 test in 0.004s

OK
$

What version of the product are you using? On what operating system?
Nose 0.11.1 on Fedora 9

Google Code Info:
Issue #: 273
Author: itk...@gmail.com
Created On: 2009-06-19T18:06:22.000Z
Closed On: