Explorar el Código

Fixes test failure

Ask Solem hace 8 años
padre
commit
2c0c449515
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      t/unit/utils/test_saferepr.py

+ 1 - 1
t/unit/utils/test_saferepr.py

@@ -231,4 +231,4 @@ class test_saferepr:
         assert 'Unrepresentable' in saferepr(O())
         assert 'Unrepresentable' in saferepr(O())
 
 
     def test_bytes_with_unicode(self):
     def test_bytes_with_unicode(self):
-        assert saferepr([b'foo', 'a®rgs'.encode()])
+        assert saferepr([b'foo', 'a®rgs'.encode('utf-8')])