Browse Source

Fixes test failure

Ask Solem 8 years ago
parent
commit
2c0c449515
1 changed files with 1 additions and 1 deletions
  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')])