Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove test of removed _filename_to_unicode method.
  • Loading branch information
terryjreedy committed Sep 21, 2020
commit 8dfbd49b3a5a9ab338f020aab9a5d6377e7ad6f6
9 changes: 0 additions & 9 deletions Lib/idlelib/idle_test/test_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ def tearDownModule():
del root


class Editor_func_test(unittest.TestCase):
def test_filename_to_unicode(self):
func = editor.EditorWindow._filename_to_unicode
class dummy(): filesystemencoding = 'utf-8'
pairs = (('abc', 'abc'), ('a\U00011111c', 'a\ufffdc'),
(b'abc', 'abc'), (b'a\xf0\x91\x84\x91c', 'a\ufffdc'))
for inp, out in pairs:
self.assertEqual(func(dummy, inp), out)

class EditorWindowTest(unittest.TestCase):

@classmethod
Expand Down