浏览代码

Fixes test failure

Ask Solem 8 年之前
父节点
当前提交
2c0c449515
共有 1 个文件被更改,包括 1 次插入1 次删除
  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')])