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

Can't run testmaker #13

Open
denivorium opened this issue Sep 9, 2010 · 0 comments
Open

Can't run testmaker #13

denivorium opened this issue Sep 9, 2010 · 0 comments

Comments

@denivorium
Copy link

I'll start by saying this has worked on my system in the past, and I also tried a fresh checkout of head with no difference.

When I run

./manage.py testmaker --app=[app]

I get the following partial stacktrace:

Handling app '[app]'
Logging tests to [app]\tests\cportal_testmaker.py
Traceback (most recent call last):
...
  File "C:\Python26\lib\site-packages\django_test_utils-0.3-py2.6.egg\test_utils
\management\commands\testmaker.py", line 49, in handle
    testmaker.prepare(insert_middleware=True)
  File "C:\Python26\lib\site-packages\django_test_utils-0.3-py2.6.egg\test_utils
\testmaker\__init__.py", line 43, in prepare
    self.setup_logging()
  File "C:\Python26\lib\site-packages\django_test_utils-0.3-py2.6.egg\test_utils
\testmaker\__init__.py", line 90, in setup_logging
    filename=path.devnull)
  File "C:\Python26\lib\logging\__init__.py", line 1394, in basicConfig
    hdlr = FileHandler(filename, mode)
  File "C:\Python26\lib\logging\__init__.py", line 819, in __init__
    StreamHandler.__init__(self, self._open())
  File "C:\Python26\lib\logging\__init__.py", line 838, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '\\\\nul'

Looking at the code the problem is passing path.devnull into logging.BasicConfig(). What I don't understand is that this seems to be a mature section of code, so why did this work on my machine before, and why isn't it working now? Also it'd be nice to have it work as intended. I simply have that commented out in my code right now.

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

No branches or pull requests

1 participant