You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
I get the following partial stacktrace:
Looking at the code the problem is passing
path.devnull
intologging.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.The text was updated successfully, but these errors were encountered: