diff options
author | willmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f> | 2013-09-10 08:50:01 +0000 |
---|---|---|
committer | willmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f> | 2013-09-10 08:50:01 +0000 |
commit | ef97c07e56ac27f7feb4209010b3e0dab714bb05 (patch) | |
tree | 3cdf09dd742bb4a11077b15589937236713fe265 /fs/tests | |
parent | 6829f99a92430084a11f12645fe178ec20d25e16 (diff) | |
download | pyfilesystem-git-ef97c07e56ac27f7feb4209010b3e0dab714bb05.tar.gz |
Allow unicode conversion for errors containing non-ascii strings.
Diffstat (limited to 'fs/tests')
-rw-r--r-- | fs/tests/test_errors.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/tests/test_errors.py b/fs/tests/test_errors.py index 2b2fa64..51d0262 100644 --- a/fs/tests/test_errors.py +++ b/fs/tests/test_errors.py @@ -1,3 +1,4 @@ +# -*- encoding: utf-8 -*- """ fs.tests.test_errors: testcases for the fs error classes functions @@ -24,3 +25,8 @@ class TestErrorPickling(unittest.TestCase): assert_dump_load(UnsupportedError("makepony")) +class TestFSError(unittest.TestCase): + + def test_unicode_representation_of_error_with_non_ascii_characters(self): + path_error = PathError('/Shïrê/Frødø') + _ = unicode(path_error)
\ No newline at end of file |