[issue10966] eliminate use of ImportError implicitly representing SkipTest
Antoine Pitrou
report at bugs.python.org
Fri Feb 11 00:35:55 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
The patch works fine on Linux but breaks test_pipes and test_sqlite on
Windows:
[1/1] test_pipes
testBadAppendOptions (test.test_pipes.SimplePipeTests) ... ok
testBadOpenMode (test.test_pipes.SimplePipeTests) ... ok
testBadPrependOptions (test.test_pipes.SimplePipeTests) ... ok
testClone (test.test_pipes.SimplePipeTests) ... ok
testEmptyPipeline1 (test.test_pipes.SimplePipeTests) ... 'cat' is not
recognized
as an internal or external command,
operable program or batch file.
FAIL
testEmptyPipeline2 (test.test_pipes.SimplePipeTests) ... ok
testEmptyPipeline3 (test.test_pipes.SimplePipeTests) ... ok
testQuoting (test.test_pipes.SimplePipeTests) ... ok
testReadOpenSink (test.test_pipes.SimplePipeTests) ... ok
testRepr (test.test_pipes.SimplePipeTests) ... ok
testSetDebug (test.test_pipes.SimplePipeTests) ... ok
testSimplePipe1 (test.test_pipes.SimplePipeTests) ... 'tr' is not
recognized as
an internal or external command,
operable program or batch file.
FAIL
testSimplePipe2 (test.test_pipes.SimplePipeTests) ... The system cannot
find the
file specified.
ERROR
testSimplePipe3 (test.test_pipes.SimplePipeTests) ... The system cannot
find the
file specified.
FAIL
testWriteOpenSource (test.test_pipes.SimplePipeTests) ... ok
======================================================================
ERROR: testSimplePipe2 (test.test_pipes.SimplePipeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Z:\__svn__\lib\test\test_pipes.py", line 34, in testSimplePipe2
with open(TESTFN2) as f:
IOError: [Errno 2] No such file or directory: '@test_560_tmp2'
======================================================================
FAIL: testEmptyPipeline1 (test.test_pipes.SimplePipeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Z:\__svn__\lib\test\test_pipes.py", line 58, in
testEmptyPipeline1
self.assertEqual(f.read(), d)
AssertionError: '' != 'empty pipeline test COPY'
+ empty pipeline test COPY
======================================================================
FAIL: testSimplePipe1 (test.test_pipes.SimplePipeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Z:\__svn__\lib\test\test_pipes.py", line 26, in testSimplePipe1
self.assertEqual(f.read(), 'HELLO WORLD #1')
AssertionError: '' != 'HELLO WORLD #1'
+ HELLO WORLD #1
======================================================================
FAIL: testSimplePipe3 (test.test_pipes.SimplePipeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Z:\__svn__\lib\test\test_pipes.py", line 44, in testSimplePipe3
self.assertEqual(f.read(), 'HELLO WORLD #2')
AssertionError: '' != 'HELLO WORLD #2'
+ HELLO WORLD #2
----------------------------------------------------------------------
Ran 15 tests in 0.250s
FAILED (failures=3, errors=1)
test test_pipes failed -- multiple errors occurred
test test_sqlite crashed -- <class 'ImportError'>: No module named _sqlite3
Traceback (most recent call last):
File "Z:\__svn__\lib\test\regrtest.py", line 948, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "Z:\__svn__\lib\test\test_sqlite.py", line 4, in <module>
test.support.import_module('_sqlite3', required_on=['win32'])
File "Z:\__svn__\lib\test\support.py", line 115, in import_module
return importlib.import_module(name)
File "Z:\__svn__\lib\importlib\__init__.py", line 124, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "Z:\__svn__\lib\importlib\_bootstrap.py", line 822, in _gcd_import
raise ImportError(_ERR_MSG.format(name))
ImportError: No module named _sqlite3
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10966>
_______________________________________
More information about the Python-bugs-list
mailing list