Browse Source

Fixes test failure

Ask Solem 8 năm trước cách đây
mục cha
commit
2c0c449515
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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())
 
     def test_bytes_with_unicode(self):
-        assert saferepr([b'foo', 'a®rgs'.encode()])
+        assert saferepr([b'foo', 'a®rgs'.encode('utf-8')])