Issue2587
Created on 2017-05-05.12:06:43 by stefan.richthofer, last changed 2017-05-05.17:33:16 by stefan.richthofer.
| Messages | |||
|---|---|---|---|
| msg11354 (view) | Author: Stefan Richthofer (stefan.richthofer) | Date: 2017-05-05.12:06:43 | |
My usual development workspace on Linux (Mint 18 Cinnamon-64Bit) is hosted on an NTFS partition for better interoperability with Windows.
I observe test_dumbdbm and test_shutil to fail in this settings, while both pass if I move dist-folder to an ext4-partition. test_mailbox also suffers from this, but also fails for me on ext4 with less failures though. On Windows I don't observe any of these failures, but maybe they are just skipped (didn't yet check).
Outputs on NTFS are as follows:
test_dumbdbm:
======================================================================
FAIL: test_dumbdbm_creation_mode (__main__.DumbDBMTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_dumbdbm.py", line 67, in test_dumbdbm_creation_mode
self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode)
AssertionError: 511 != 413
----------------------------------------------------------------------
Ran 9 tests in 0.923s
FAILED (failures=1)
Traceback (most recent call last):
File "Lib/test/test_dumbdbm.py", line 190, in <module>
test_main()
File "Lib/test/test_dumbdbm.py", line 185, in test_main
test_support.run_unittest(DumbDBMTestCase)
File "/data/workspace/linux/Jython/ssh/jython/dist/Lib/test/test_support.py", line 1330, in run_unittest
_run_suite(suite)
File "/data/workspace/linux/Jython/ssh/jython/dist/Lib/test/test_support.py", line 1313, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
File "Lib/test/test_dumbdbm.py", line 67, in test_dumbdbm_creation_mode
self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode)
AssertionError: 511 != 413
test_shutil:
======================================================================
FAIL: test_on_error (__main__.TestShutil)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_shutil.py", line 101, in test_on_error
self.assertEqual(self.errorState, 2,
AssertionError: Expected call to onerror function did not happen.
----------------------------------------------------------------------
Ran 31 tests in 0.525s
FAILED (failures=1)
Traceback (most recent call last):
File "Lib/test/test_shutil.py", line 816, in <module>
test_main()
File "Lib/test/test_shutil.py", line 813, in test_main
test_support.run_unittest(TestShutil, TestMove, TestCopyFile)
File "/data/workspace/linux/Jython/ssh/jython/dist/Lib/test/test_support.py", line 1330, in run_unittest
_run_suite(suite)
File "/data/workspace/linux/Jython/ssh/jython/dist/Lib/test/test_support.py", line 1313, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
File "Lib/test/test_shutil.py", line 101, in test_on_error
self.assertEqual(self.errorState, 2,
AssertionError: Expected call to onerror function did not happen.
For test_mailbox see #2586.
|
|||
| msg11356 (view) | Author: Stefan Richthofer (stefan.richthofer) | Date: 2017-05-05.17:33:16 | |
Just wanted to store and share a stackoverflow link here regarding file system detection using Python. Might be helpful to guard affected tests. http://stackoverflow.com/questions/25283882/determining-the-filesystem-type-from-a-path-in-python |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-05-05 17:33:16 | stefan.richthofer | set | messages: + msg11356 |
| 2017-05-05 12:13:07 | stefan.richthofer | set | title: tests failures on Linux due to file permissions on NTFS partition -> test failures on Linux due to file permissions on NTFS partition |
| 2017-05-05 12:06:43 | stefan.richthofer | create | |
Supported by Python Software Foundation,
Powered by Roundup