[New-bugs-announce] [issue13401] test_argparse fails with root permissions

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Mon Nov 14 16:20:11 CET 2011


New submission from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA at GMail.Com>:

$ 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 <module>
    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

----------
components: Tests
keywords: easy
messages: 147602
nosy: Arfrever, bethard
priority: normal
severity: normal
status: open
title: test_argparse fails with root permissions
versions: Python 2.7, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13401>
_______________________________________


More information about the New-bugs-announce mailing list