[New-bugs-announce] [issue34200] [Windows] python -X utf8 -m test test_pkg fails

STINNER Victor report at bugs.python.org
Mon Jul 23 08:45:09 EDT 2018


New submission from STINNER Victor <vstinner at redhat.com>:

vstinner at WIN C:\vstinner\python\master>python -X utf8 -m test -v test_pkg       

======================================================================          
ERROR: test_4 (test.test_pkg.TestPkg)                                           
----------------------------------------------------------------------          
Traceback (most recent call last):                                              
  File "C:\vstinner\python\master\lib\test\test_pkg.py", line 180, in test_4    
    self.run_code(s)                                                            
  File "C:\vstinner\python\master\lib\test\test_pkg.py", line 69, in run_code   
    exec(textwrap.dedent(code), globals(), {"self": self})                      
  File "<string>", line 2, in <module>                                          
  File "C:\Users\vstinner\AppData\Local\Temp\tmpgr2te1hp\t4.py", line 1, in <mod
ule>                                                                            
RuntimeError: Shouldnt load t4.py                                               

======================================================================          
FAIL: test_7 (test.test_pkg.TestPkg)                                            
----------------------------------------------------------------------          
Traceback (most recent call last):                                              
  File "C:\vstinner\python\master\lib\test\test_pkg.py", line 260, in test_7    
    '__name__', '__package__', '__path__', '__spec__'])                         
AssertionError: Lists differ: ['__c[34 chars]__loader__', '__name__', '__package
__', '__spec__'] != ['__c[34 chars]__loader__', '__name__', '__package__', '__pa
th__', '__spec__']                                                              

First differing element 6:                                                      
'__spec__'                                                                      
'__path__'                                                                      

Second list contains 1 additional elements.                                     
First extra element 7:                                                          
'__spec__'                                                                      

  ['__cached__',                                                                
   '__doc__',                                                                   
   '__file__',                                                                  
   '__loader__',                                                                
   '__name__',                                                                  
   '__package__',                                                               
+  '__path__',                                                                  
   '__spec__']                                                                  

----------------------------------------------------------------------

----------
components: Tests, Windows
messages: 322208
nosy: paul.moore, steve.dower, tim.golden, vstinner, zach.ware
priority: normal
severity: normal
status: open
title: [Windows] python -X utf8 -m test test_pkg fails
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34200>
_______________________________________


More information about the New-bugs-announce mailing list