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
test_commands.py failing on OS X 10.5.7 due to '@' in ls output #51357
Comments
I am testing this out of the trunk on OS X 10.5.7: uclid:trunk minge$ uname -a ====================================================================== Traceback (most recent call last):
File "Lib/test/test_commands.py", line 60, in test_getstatus
self.assertTrue(re.match(pat, getstatus("/."), re.VERBOSE))
AssertionError: None is not True Ran 2 tests in 0.047s FAILED (failures=1)
Traceback (most recent call last):
File "Lib/test/test_commands.py", line 69, in <module>
test_main()
File "Lib/test/test_commands.py", line 64, in test_main
run_unittest(CommandTests)
File
"/Users/minge/Research/Languages/python/trunk/Lib/test/test_support.py",
line 884, in run_unittest
_run_suite(suite)
File
"/Users/minge/Research/Languages/python/trunk/Lib/test/test_support.py",
line 867, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
File "Lib/test/test_commands.py", line 60, in test_getstatus
self.assertTrue(re.match(pat, getstatus("/."), re.VERBOSE))
AssertionError: None is not True [30608 refs] ---------------------------------------------------------------------- OK According to the OS X documentation for ls(1) [1] the output of ls can [1] |
test_commands test_getstatus also fails on linux with SELinux enabled On gnu/linux, info ls reports:
""" So it sounds like the previous patch could be further generalized to (say)
+ [.+@]? # It may have alt access (SELinux, ACLs ~jim |
I can confirm that this test has been failing on my slave, and that the patch fixes it. Recommend commit. Red is bad. |
New changeset 5616cbce0bee by Ned Deily in branch '2.7': |
Thanks for the suggested patch and extension to the SELinux case. (Note that getstatus is deprecated and removed in Python 3 so this patch only applies to 2.7.) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: