summaryrefslogtreecommitdiff
path: root/Lib/test/test_macfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_macfs.py')
-rw-r--r--Lib/test/test_macfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_macfs.py b/Lib/test/test_macfs.py
index 9c0e3a1a7c..e25250ba4f 100644
--- a/Lib/test/test_macfs.py
+++ b/Lib/test/test_macfs.py
@@ -32,7 +32,7 @@ class TestMacfs(unittest.TestCase):
def test_fsref_unicode(self):
if sys.getfilesystemencoding():
- testfn_unicode = unicode(test_support.TESTFN)
+ testfn_unicode = str(test_support.TESTFN)
fsr = macfs.FSRef(testfn_unicode)
self.assertEqual(os.path.realpath(test_support.TESTFN), fsr.as_pathname())