Leo kirotawa silva <kirot...@gmail.com> added the comment:

Python 3.4 also has the similar code as 3.5, but applying the same patch tests 
for it results in test errors:

+======================================================================         
                                                                                
                                         
+ERROR: test_anydbm_creation (test.test_dbm.TestCase-dbm.ndbm)                  
                                                                                
                                         
+----------------------------------------------------------------------         
                                                                                
                                        
+Traceback (most recent call last):                                             
                                                                                
                                       
+  File "/<<PKGBUILDDIR>>/Lib/test/test_dbm.py", line 74, in 
test_anydbm_creation^M                                                          
                                                               
+    self.read_helper(f)^M                                                      
                                                                                
                                            
+  File "/<<PKGBUILDDIR>>/Lib/test/test_dbm.py", line 115, in read_helper       
                                                                                
                                         
+    self.assertEqual(self._dict[key], f[key.encode("ascii")])                  
                                                                                
                                         
+KeyError: b'0'                                                                 
                                                                                
                                        
+                                                                               
                                                                                
                                         
+======================================================================         
                                                                                
                                         
+ERROR: test_anydbm_modification (test.test_dbm.TestCase-dbm.ndbm)              
                                                                                
                                          
+----------------------------------------------------------------------         
                                                                                
                                        
+Traceback (most recent call last):                                             
                                                                                
                                         
+  File "/<<PKGBUILDDIR>>/Lib/test/test_dbm.py", line 89, in 
test_anydbm_modification                                                        
                                                           
+    self.read_helper(f)                                                        
                                                                                
                                        
+  File "/<<PKGBUILDDIR>>/Lib/test/test_dbm.py", line 115, in read_helper       
                                                                                
                                         
+    self.assertEqual(self._dict[key], f[key.encode("ascii")])                  
                                                                                
                                         
+KeyError: b'0'                                                                 
                                                                                
                                         
+                                                                               
                                                                                
                                        
+======================================================================         
                                                                                
                                         
+ERROR: test_anydbm_read (test.test_dbm.TestCase-dbm.ndbm)                      
                                                                                
                                         
+----------------------------------------------------------------------         
                                                                                
                                         
+Traceback (most recent call last):                                             
                                                                                
                                         
+  File "/<<PKGBUILDDIR>>/Lib/test/test_dbm.py", line 95, in test_anydbm_read   
                                                                                
                                          
+    self.read_helper(f)                                                        
                                                                                
                                         
+  File "/<<PKGBUILDDIR>>/Lib/test/test_dbm.py", line 115, in read_helper       
                                                                                
                                         
+    self.assertEqual(self._dict[key], f[key.encode("ascii")])                  
                                                                                
                                          
+KeyError: b'0'

----------
versions: +Python 3.4 -Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue30657>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to