bobber6467 / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

Error running nosetests.exe on Windows Vista #179

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run nosetests
2.
3.

What is the expected output? What do you see instead?
WindowsError: [Error 5] Access is denied: 'C:\\Users\\sagi\\Application
Data/*.*'

What version of the product are you using? On what operating system?
nose-0.10.0b1-py2.5
Python 2.5.1

Full exception:
C:\Users\sagi>nosetests
Traceback (most recent call last):
  File "C:\Python25\Scripts\nosetests-script.py", line 8, in <module>
    load_entry_point('nose==0.10.0b1', 'console_scripts', 'nosetests')()
  File
"c:\python25\lib\site-packages\nose-0.10.0b1-py2.5.egg\nose\core.py", line
188, in __init__
    argv=argv, testRunner=testRunner, testLoader=testLoader)
  File "C:\Python25\lib\unittest.py", line 768, in __init__
    self.runTests()
  File
"c:\python25\lib\site-packages\nose-0.10.0b1-py2.5.egg\nose\core.py", line
263, in runTests
    result = self.testRunner.run(self.test)
  File
"c:\python25\lib\site-packages\nose-0.10.0b1-py2.5.egg\nose\core.py", line
62, in run
    test(result)
  File
"c:\python25\lib\site-packages\nose-0.10.0b1-py2.5.egg\nose\suite.py", line
133, in __call__
    return self.run(*arg, **kw)
  File
"c:\python25\lib\site-packages\nose-0.10.0b1-py2.5.egg\nose\suite.py", line
164, in run
    test(orig)
  File "C:\Python25\lib\unittest.py", line 437, in __call__
    return self.run(*args, **kwds)
  File "C:\Python25\lib\unittest.py", line 430, in run
    for test in self._tests:
  File
"c:\python25\lib\site-packages\nose-0.10.0b1-py2.5.egg\nose\suite.py", line
77, in _get_tests
    for test in self.test_generator:
  File
"c:\python25\lib\site-packages\nose-0.10.0b1-py2.5.egg\nose\loader.py",
line 130, in loadTestsFromDir
    is_package = ispackage(entry_path)
  File
"c:\python25\lib\site-packages\nose-0.10.0b1-py2.5.egg\nose\util.py", line
138, in ispackage
    init = [e for e in os.listdir(path)
WindowsError: [Error 5] Access is denied: 'C:\\Users\\sagi\\Application
Data/*.*'

Original issue reported on code.google.com by sag...@gmail.com on 4 Apr 2008 at 7:13

GoogleCodeExporter commented 8 years ago
I agree this is a bug, but I guess it's unlikely to get fixed unless either you
provide a patch, or explain why it matters to you.  Especially since I'm not 
sure if
any of the nose developers work on Windows (there's likely a similar bug on *nix
systems, but Windows is likely to need special-casing).

Setting to low priority for now.

Original comment by j...@pobox.com on 6 Apr 2008 at 12:21