소스 검색

Fix tests when running in ASCII environment. (#433).

Jelmer Vernooij 9 년 전
부모
커밋
ea06b4936f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dulwich/tests/test_refs.py

+ 1 - 1
dulwich/tests/test_refs.py

@@ -441,7 +441,7 @@ class DiskRefsContainerTests(RefsContainerTests, TestCase):
     def test_non_ascii(self):
         try:
             encoded_ref = u'refs/tags/schön'.encode(sys.getfilesystemencoding())
-        except UnicodeDecodeError:
+        except UnicodeEncodeError:
             raise SkipTest("filesystem encoding doesn't support special character")
         p = os.path.join(self._repo.path, 'refs', 'tags', 'schön')
         with open(p, 'w') as f: