Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions Lib/idlelib/idle_test/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def tearDownClass(cls):
cls.root.destroy()
del cls.root

@unittest.skip('Dummy test')
def test_init(self):
self.assertTrue(True)

Expand Down
16 changes: 7 additions & 9 deletions Lib/idlelib/idle_test/test_autocomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,16 +230,14 @@ def test_fetch_completions(self):
# For file completion, a large list containing all files in the path,
# and a small list containing files that do not start with '.'.
acp = self.autocomplete
small, large = acp.fetch_completions(
'', ac.ATTRS)
if hasattr(__main__, '__file__') and __main__.__file__ != ac.__file__:
self.assertNotIn('AutoComplete', small) # See issue 36405.

# Test attributes
s, b = acp.fetch_completions('', ac.ATTRS)
self.assertLess(len(small), len(large))
self.assertTrue(all(filter(lambda x: x.startswith('_'), s)))
self.assertTrue(any(filter(lambda x: x.startswith('_'), b)))
# Test current module (what='') attributes.
small, large = acp.fetch_completions('', ac.ATTRS)
if hasattr(__main__, '__file__') and __main__.__file__ != ac.__file__:
self.assertNotIn('AutoComplete', small) # See gh-80586.
self.assertLess(len(small), len(large)) # Not equal
self.assertFalse(any(a[:1] == '_' for a in small))
self.assertTrue(any(a[:1] == '_' for a in large))

# Test smalll should respect to __all__.
with patch.dict('__main__.__dict__', {'__all__': ['a', 'b']}):
Expand Down
1 change: 1 addition & 0 deletions Lib/idlelib/idle_test/test_configdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def tearDownModule():
root = dialog = None


@unittest.skip('Empty tests')
class ConfigDialogTest(unittest.TestCase):

def test_deactivate_current_config(self):
Expand Down
1 change: 1 addition & 0 deletions Lib/idlelib/idle_test/test_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def test_searcher(self):
self.assertEqual(actual_pair, expected_pair)


@unittest.skip('Empty test')
class RMenuTest(unittest.TestCase):

@classmethod
Expand Down
Loading