Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 855437

Summary: dev-python/feedparser-6.0.10 fails tests
Product: Gentoo Linux Reporter: Jonathan Lovelace <kingjon3377>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: UNCONFIRMED ---    
Severity: normal CC: mgorny, treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/kurtmckee/feedparser/issues/318
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-python:feedparser-6.0.10:20220630-231501.log
emerge-info.txt

Description Jonathan Lovelace 2022-06-30 23:29:51 UTC
Created attachment 789104 [details]
dev-python:feedparser-6.0.10:20220630-231501.log

=dev-python/feedparser-6.0.10 fails its test phase for me:

======================================================================                                        
FAIL: test_001742 (__main__.TestCase)                                                                         
./tests/illformed/chardet/windows1255.xml: windows-1255 with no encoding information                          
----------------------------------------------------------------------                                        
Traceback (most recent call last):                                                                            
  File "/var/tmp/portage/dev-python/feedparser-6.0.10/work/feedparser-6.0.10/tests/runtests.py", line 912, in 
fn                                                                                                            
    self.fail_unless_eval(xmlfile, eval_string)                                                                 File "/var/tmp/portage/dev-python/feedparser-6.0.10/work/feedparser-6.0.10/tests/runtests.py", line 176, in 
fail_unless_eval                                                                                                  raise self.failureException(failure)                                                                      
AssertionError: not eval(b"bozo and encoding == 'windows-1255'")                                              
WITH env({'bozo': True,                                                                                       
 'bozo_exception': CharacterEncodingOverride('document declared as utf-8, but parsed as WINDOWS-1255'),       
 'encoding': 'WINDOWS-1255',                                                                                  
 'entries': [{'summary': 'האם תדפיס נייר של אתר אינטרנט שמוצג על מסך משתמש הוא '                              
                         'העתק נאמן למקור של אתר האינטרנט? רבים יגידו שכן, '                                  
                         'ולפעמים גם בתי המשפט יצטרפו אליהם שיקבלו פלט מאתר '                                 
                         'אינטרנט כראיה קבילה. אבל, זה ממש לא כך. ויש אפילו '                                 
                         'הוכחה מדהימה.',                                                                     
              'summary_detail': {'base': '',                                                                  
                                 'language': None,                                                                                             'type': 'text/html',                                                         
                                 'value': 'האם תדפיס נייר של אתר אינטרנט שמוצג '                              
                                          'על מסך משתמש הוא העתק נאמן למקור של '                              
                                          'אתר האינטרנט? רבים יגידו שכן, '                                    
                                          'ולפעמים גם בתי המשפט יצטרפו אליהם '                                
                                          'שיקבלו פלט מאתר אינטרנט כראיה '                                    
                                          'קבילה. אבל, זה ממש לא כך. ויש אפילו '                              
                                          'הוכחה מדהימה.'}}],                                                 
 'feed': {},                                                                                                  
 'headers': {},                                                                                               
 'namespaces': {},                                                                                            
 'version': 'rss'})                                                                                           
                                                                                                              
======================================================================                                        
FAIL: test_001745 (__main__.TestCase)                                                                         
./tests/illformed/chardet/gb2312.xml: GB2312 with no encoding information                                     
----------------------------------------------------------------------                                        
Traceback (most recent call last):                                                                            
  File "/var/tmp/portage/dev-python/feedparser-6.0.10/work/feedparser-6.0.10/tests/runtests.py", line 912, in 
fn                                                                                                                self.fail_unless_eval(xmlfile, eval_string)                                                               
  File "/var/tmp/portage/dev-python/feedparser-6.0.10/work/feedparser-6.0.10/tests/runtests.py", line 176, in 
fail_unless_eval                                                                                              
    raise self.failureException(failure)                                                                      
AssertionError: not eval(b"bozo and encoding == 'GB2312'")                                                    
WITH env({'bozo': True,                                                                                       
 'bozo_exception': CharacterEncodingOverride('document declared as utf-8, but parsed as GB18030'),            
 'encoding': 'GB18030',                                                                                       
 'entries': [{'title': '不归移民漫画系列:专业工作',                                                          
              'title_detail': {'base': '',                                                                    
                               'language': None,                                                                                             'type': 'text/plain',                                                          
                               'value': '不归移民漫画系列:专业工作'}}],                                       'feed': {},                                                                                                  
 'headers': {},                                                                                               
 'namespaces': {},                                                                                            
 'version': 'rss'})                                                                                           
                                                                                                              
======================================================================                                        
FAIL: test_001746 (__main__.TestCase)                                                                         
./tests/illformed/chardet/euckr.xml: EUC-KR with no encoding information                                      
----------------------------------------------------------------------                                        
Traceback (most recent call last):                                                                            
  File "/var/tmp/portage/dev-python/feedparser-6.0.10/work/feedparser-6.0.10/tests/runtests.py", line 912, in 
fn                                                                                                                self.fail_unless_eval(xmlfile, eval_string)                                                               
  File "/var/tmp/portage/dev-python/feedparser-6.0.10/work/feedparser-6.0.10/tests/runtests.py", line 176, in 
fail_unless_eval                                                                                              
    raise self.failureException(failure)                                                                      
AssertionError: not eval(b"bozo and encoding == 'EUC-KR'")                                                    
WITH env({'bozo': True,                                                                                       
 'bozo_exception': CharacterEncodingOverride('document declared as utf-8, but parsed as UHC'),                
 'encoding': 'UHC',                                                                                           
 'entries': [{'summary': 'TypeKey 시스템이 UTF-8로 돌아가는데, 거기서 한글로 된 닉네임을 정할 경우에, '       
                         'EUC-KR로 된 무버블타입 블록에선 리다이렉트되어 전송되어오는 닉네임이 UTF라 당연히 ' 
                         '깨어져 나타난다. 실제 블록 등에서 사용하는 필명 내지는 닉네임은 한글로 사용하는 많은
 분들도 '                                                                                                     
                         '타입키에서의 닉네임은 이런 문제때문에 울며겨자먹기로 영어로 짓고 있다....',         
              'summary_detail': {'base': '',                                                                  
                                 'language': None,                                                            
                                 'type': 'text/html',                                                         
                                 'value': 'TypeKey 시스템이 UTF-8로 돌아가는데, 거기서 한글로 '               
                                          '된 닉네임을 정할 경우에, EUC-KR로 된 무버블타입 블록에선 '         
                                          '리다이렉트되어 전송되어오는 닉네임이 UTF라 당연히 깨어져 '         
                                          '나타난다. 실제 블록 등에서 사용하는 필명 내지는 닉네임은 '                                                   '한글로 사용하는 많은 분들도 타입키에서의 닉네임은 이런 '           
                                          '문제때문에 울며겨자먹기로 영어로 짓고 있다....'},                  
              'title': 'EUC-KR 에서 TypeKey 한글닉네임 표시하기',                                             
              'title_detail': {'base': '',                                                                    
                               'language': None,                                                              
                               'type': 'text/plain',                                                          
                               'value': 'EUC-KR 에서 TypeKey 한글닉네임 표시하기'}}],                         
 'feed': {},                                                                                                  
 'headers': {},                                                                                               
 'namespaces': {},                                                                                            
 'version': 'rss'})                                                                                                                                                                                                         
----------------------------------------------------------------------                                        Ran 4341 tests in 4.683s                                                                                      
                                                                                                              
FAILED (failures=3)
Comment 1 Jonathan Lovelace 2022-06-30 23:30:11 UTC
Created attachment 789107 [details]
emerge-info.txt