Issue 13401: test_argparse fails with root permissions (original) (raw)

$ python3.3 -B -m test.test_argparse ...

FAIL: test_failures_many_groups_listargs (main.TestFileTypeW)

Traceback (most recent call last): File "/usr/lib64/python3.3/test/test_argparse.py", line 216, in wrapper test_func(self) File "/usr/lib64/python3.3/test/test_argparse.py", line 235, in test_failures raises(ArgumentParserError, parser.parse_args, args) AssertionError: ArgumentParserError not raised by parse_args

====================================================================== FAIL: test_failures_many_groups_sysargs (main.TestFileTypeW)

Traceback (most recent call last): File "/usr/lib64/python3.3/test/test_argparse.py", line 216, in wrapper test_func(self) File "/usr/lib64/python3.3/test/test_argparse.py", line 235, in test_failures raises(ArgumentParserError, parser.parse_args, args) AssertionError: ArgumentParserError not raised by parse_args

====================================================================== FAIL: test_failures_no_groups_listargs (main.TestFileTypeW)

Traceback (most recent call last): File "/usr/lib64/python3.3/test/test_argparse.py", line 216, in wrapper test_func(self) File "/usr/lib64/python3.3/test/test_argparse.py", line 235, in test_failures raises(ArgumentParserError, parser.parse_args, args) AssertionError: ArgumentParserError not raised by parse_args

====================================================================== FAIL: test_failures_no_groups_sysargs (main.TestFileTypeW)

Traceback (most recent call last): File "/usr/lib64/python3.3/test/test_argparse.py", line 216, in wrapper test_func(self) File "/usr/lib64/python3.3/test/test_argparse.py", line 235, in test_failures raises(ArgumentParserError, parser.parse_args, args) AssertionError: ArgumentParserError not raised by parse_args

====================================================================== FAIL: test_failures_one_group_listargs (main.TestFileTypeW)

Traceback (most recent call last): File "/usr/lib64/python3.3/test/test_argparse.py", line 216, in wrapper test_func(self) File "/usr/lib64/python3.3/test/test_argparse.py", line 235, in test_failures raises(ArgumentParserError, parser.parse_args, args) AssertionError: ArgumentParserError not raised by parse_args

====================================================================== FAIL: test_failures_one_group_sysargs (main.TestFileTypeW)

Traceback (most recent call last): File "/usr/lib64/python3.3/test/test_argparse.py", line 216, in wrapper test_func(self) File "/usr/lib64/python3.3/test/test_argparse.py", line 235, in test_failures raises(ArgumentParserError, parser.parse_args, args) AssertionError: ArgumentParserError not raised by parse_args


Ran 1611 tests in 8.405s

FAILED (failures=6) Traceback (most recent call last): File "/usr/lib64/python3.3/runpy.py", line 160, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib64/python3.3/runpy.py", line 73, in _run_code exec(code, run_globals) File "/usr/lib64/python3.3/test/test_argparse.py", line 4773, in test_main() File "/usr/lib64/python3.3/test/test_argparse.py", line 4765, in test_main support.run_unittest(name) File "/usr/lib64/python3.3/test/support.py", line 1402, in run_unittest _run_suite(suite) File "/usr/lib64/python3.3/test/support.py", line 1377, in _run_suite raise TestFailed(err) test.support.TestFailed: multiple errors occurred