소스 검색

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')])