[issue11955] 3.3 : test_argparse.py fails 'make test'

2011-04-29 Thread Jason Vas Dias

New submission from Jason Vas Dias :

Hi - I've been experiencing many errors trying to build any version
of Python that will pass its test suite - see issues : #11946 , #11954 -
and now I've been advised to raise bugs about each test failure -
hence this bug. For details of my config and build procedure, please
see : issue #11954 .

So, running the new ./python fails test_argparse :

$ LD_LIBRARY_PATH=`pwd` LD_PRELINK=`pwd`/libpython3.3.so.1.0 \
  ./python /usr/src/cpython/Lib/test/test_argparse.py
...
==
FAIL: test_failures_many_groups_listargs (__main__.TestFileTypeW) 
--
Traceback (most recent call last):
  File "/usr/src/cpython/Lib/test/test_argparse.py", line 216, in wrapper
test_func(self)  
  File "/usr/src/cpython/Lib/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/src/cpython/Lib/test/test_argparse.py", line 216, in wrapper
test_func(self)  
  File "/usr/src/cpython/Lib/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/src/cpython/Lib/test/test_argparse.py", line 216, in wrapper
test_func(self)  
  File "/usr/src/cpython/Lib/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/src/cpython/Lib/test/test_argparse.py", line 216, in wrapper
test_func(self)  
  File "/usr/src/cpython/Lib/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/src/cpython/Lib/test/test_argparse.py", line 216, in wrapper
test_func(self)  
  File "/usr/src/cpython/Lib/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/src/cpython/Lib/test/test_argparse.py", line 216, in wrapper
test_func(self)  
  File "/usr/src/cpython/Lib/test/test_argparse.py", line 235, in test_failures
raises(ArgumentParserError, parser.parse_args, args)   
AssertionError: ArgumentParserError not raised by parse_args   

--
Ran 1608 tests in 5.293s  

FAILED (failures=6)
Traceback (most recent call last):
  File "/usr/src/cpython/Lib/test/test_argparse.py", line 4712, in 
test_main()
  File "/usr/src/cpython/Lib/test/test_argparse.py", line 4704, in test_main
support.run_unittest(__name_

[issue11955] 3.3 : test_argparse.py fails 'make test'

2011-04-29 Thread Brian Curtin

Changes by Brian Curtin :


--
components: +Tests -Build
type: crash -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11955] 3.3 : test_argparse.py fails 'make test'

2011-04-29 Thread Jason Vas Dias

Jason Vas Dias  added the comment:

Aha ! the test succeeds as a non root (super-) user .
This is because as a root user I can override w bit
settings on directories I own: see issue #11956 
for fix I applied to test_import.py to fix same
issue. Thanks !

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11955] 3.3 : test_argparse.py fails 'make test'

2011-04-29 Thread R. David Murray

R. David Murray  added the comment:

The six error messages tell you that six different tests failed.  Yes, the 
failures are probably all due to the same cause, but that's just how unit 
testing works.  (And yes, the argparse tests are a bit more terse and difficult 
to understand than many of our tests, but that is because they are trying to 
economically test a lot of different edge cases.)

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11955] 3.3 : test_argparse.py fails 'make test'

2011-04-30 Thread Éric Araujo

Éric Araujo  added the comment:

The helpers in test_argparse could be enhanced to print the tested string and 
expected result in case of failure.  Or the real line number.

--
nosy: +bethard, eric.araujo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11955] 3.3 : test_argparse.py fails 'make test'

2013-03-01 Thread Ezio Melotti

Ezio Melotti added the comment:

The attached patch adds the list of args to the output of assertRaises in case 
of error, e.g.:
FAIL: test_failures_one_group_sysargs 
(test.test_argparse.TestPositionalsNargsZeroOrMoreNone)
--
Traceback (most recent call last):
  File "/home/wolf/dev/py/3.3/Lib/test/test_argparse.py", line 216, in wrapper
test_func(self)
  File "/home/wolf/dev/py/3.3/Lib/test/test_argparse.py", line 236, in 
test_failures
parser.parse_args(args)
AssertionError: ArgumentParserError not raised : ['foo', 'bar']

--
keywords: +patch
nosy: +ezio.melotti
stage:  -> patch review
versions: +Python 3.4
Added file: http://bugs.python.org/file29280/issue11955.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com