test failed: test_urlwithfrag

Kev Dwyer kevin.p.dwyer at gmail.com
Sat Jan 19 09:07:57 EST 2013


Terry Reedy wrote:

> On 1/7/2013 1:26 PM, Elli Lola wrote:
> 
>> $ ./python -m test -v test_urlwithfrag
>>
>> == CPython 3.3.0 (default, Jan 4 2013, 23:08:00) [GCC 4.6.3]
>> ==   Linux-3.2.0-35-generic-pae-i686-with-debian-wheezy-sid little-endian
>> ==   /home/me/Programme/Python/Python-3.3.0/build/test_python_30744
>> Testing with flags: sys.flags(debug=0, inspect=0, interactive=0,
>> optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0,
>> ignore_environment=0, verbose=0, bytes_warning=0, quiet=0,
>> hash_randomization=1)
>> [1/1] test_urlwithfrag
>> test test_urlwithfrag crashed -- Traceback (most recent call last):
>>    File "/home/me/Programme/Python/Python-3.3.0/Lib/test/regrtest.py",
>> line 1213, in runtest_inner
>>      the_package = __import__(abstest, globals(), locals(), [])
>> ImportError: No module named 'test.test_urlwithfrag'
>>
>> 1 test failed:
>>      test_urlwithfrag
> 
> Read the message I sent you before.
> 
> (To everyone else, I already explained that the error message means
> exactly what it says and listed the test_urlxxxx files that do exist. No
> need to repeat a third time.)
> 

I encountered the OP's error message while building Python 3.3 today.

$ make test
<snip>

FAIL: test_urlwithfrag (test.test_urllib2net.OtherNetworkTests)                  
----------------------------------------------------------------------           
Traceback (most recent call last):                                               
  File "/usr/src/packages/BUILD/Python-3.3.0/Lib/test/test_urllib2net.py", 
line 165, in test_urlwithfrag                                                          
    "http://docs.python.org/glossary.html#glossary")                             
AssertionError: 'http://docs.python.org/2/glossary.html' != 
'http://docs.python.org/glossary.html#glossary'                                                       
- http://docs.python.org/2/glossary.html                                         
?                        --                                                      
+ http://docs.python.org/glossary.html#glossary                                  
?                                     +++++++++  
                                                                                 
                                                                                 
----------------------------------------------------------------------           
Ran 15 tests in 15.307s                                                          
                                                                                 
FAILED (failures=1, skipped=1)                                                   
test test_urllib2net failed                                                      
make: *** [test] Error 1  


$ ./python -m test -v test_urllib2net                                                                               
== CPython 3.3.0 (default, Jan 19 2013, 13:46:53) [GCC 4.6.2]                    
==   Linux-3.1.10-1.16-desktop-x86_64-with-SuSE-12.1-x86_64 little-endian        
==   /usr/src/packages/BUILD/Python-3.3.0/build/test_python_10447                
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, 
verbose=0, bytes_warning=0, quiet=0, hash_randomization=1)                                    
[1/1] test_urllib2net                                                            
test_urllib2net skipped -- Use of the 'network' resource not enabled             
1 test skipped:                                                                  
    test_urllib2net                                                              
Those skips are all expected on linux. 


$ ./python -m test -v test_urlwithfrag                                                                              
== CPython 3.3.0 (default, Jan 19 2013, 13:46:53) [GCC 4.6.2]                    
==   Linux-3.1.10-1.16-desktop-x86_64-with-SuSE-12.1-x86_64 little-endian        
==   /usr/src/packages/BUILD/Python-3.3.0/build/test_python_10453                
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, 
verbose=0, bytes_warning=0, quiet=0, hash_randomization=1)                                    
[1/1] test_urlwithfrag                                                           
test test_urlwithfrag crashed -- Traceback (most recent call last):              
  File "/usr/src/packages/BUILD/Python-3.3.0/Lib/test/regrtest.py", line 
1213, in runtest_inner                                                                   
    the_package = __import__(abstest, globals(), locals(), [])                   
ImportError: No module named 'test.test_urlwithfrag'                             
                                                                                 
1 test failed:                                                                   
    test_urlwithfrag 

The bug has been fixed - see http://bugs.python.org/issue16969

Cheers,

Kev





More information about the Python-list mailing list