From ee7ebb9084041d3705ddae54bb46c9e17bc52846 Mon Sep 17 00:00:00 2001 From: aa-turner Date: Fri, 2 Dec 2022 14:06:43 +0000 Subject: Use unicode literal for U+00E4 git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9295 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/test/test_settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docutils/test') diff --git a/docutils/test/test_settings.py b/docutils/test/test_settings.py index 59d555752..4b18c4a56 100755 --- a/docutils/test/test_settings.py +++ b/docutils/test/test_settings.py @@ -246,7 +246,7 @@ class ConfigEnvVarFileTests(ConfigFileTests): class HelperFunctionsTests(unittest.TestCase): - pathdict = {'foo': 'hallo', 'ham': 'h\xE4m', 'spam': 'spam'} + pathdict = {'foo': 'hallo', 'ham': 'häm', 'spam': 'spam'} keys = ['foo', 'ham'] def setUp(self): @@ -257,7 +257,7 @@ class HelperFunctionsTests(unittest.TestCase): pathdict = self.pathdict.copy() frontend.make_paths_absolute(pathdict, self.keys, base_path='base') self.assertEqual(pathdict['foo'], os.path.abspath('base/hallo')) - self.assertEqual(pathdict['ham'], os.path.abspath('base/h\xE4m')) + self.assertEqual(pathdict['ham'], os.path.abspath('base/häm')) # not touched, because key not in keys: self.assertEqual(pathdict['spam'], 'spam') @@ -268,7 +268,7 @@ class HelperFunctionsTests(unittest.TestCase): pathdict = self.pathdict.copy() frontend.make_paths_absolute(pathdict, self.keys) self.assertEqual(pathdict['foo'], os.path.abspath('hallo')) - self.assertEqual(pathdict['ham'], os.path.abspath('h\xE4m')) + self.assertEqual(pathdict['ham'], os.path.abspath('häm')) # not touched, because key not in keys: self.assertEqual(pathdict['spam'], 'spam') -- cgit v1.2.1