Skip to content

Nose runner errs with python: can't open file ':nosetests': and then creates file in test directory #29

@voidnologo

Description

@voidnologo

Mac OS X 10.13
Python 3.6.2
Python 3.4.4
Python 2.7.10
nose==1.3.0 and nose==1.3.7[latest on pypi]
Latest JarrodCTaylor dotfiles install

I am using nm to run a python unittest method. The test runs correctly (gets proper ERROR/FAIL/OK status) and displays the usual Press ENTER or type command to continue. It then displays an error python: can't open file ':nosetests': [Errno 2] No such file or directory and creates a file in the test directory with the file name of the {test py file}:{test class}.{method name} (ex: test_x.py:XTests.test_x) that has the contents of the mentioned error message .

I have tried to debug through the test runner to see where the error is happening, but cannot find it.

Could you help point me in the right direction to figure out what is happening here?

  • This happens for both nm and nc
  • For nf it does not create a new file, but overwrites the contents of the test file with the error message.
  • This does not happen when running nosetests from the cmd line.
  • Error also happened when I did not have nose installed in the virtualenv

image

image

Virtualenv without nose installed:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions