Skip to content
Merged
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
Fix test_tools on Windows
  • Loading branch information
vstinner committed Oct 11, 2022
commit 5619918adc7b9ec69b0bf96f75f359cfc454a4a5
9 changes: 1 addition & 8 deletions Lib/test/test_tools/test_sundry.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ class TestSundryScripts(unittest.TestCase):
allowlist = ['reindent']
# scripts that can't be imported without running
denylist = ['make_ctype']
# scripts that use windows-only modules
windows_only = ['win_add2path']
# denylisted for other reasons
other = ['2to3']

skiplist = denylist + allowlist + windows_only + other
skiplist = denylist + allowlist + other

def test_sundry(self):
old_modules = import_helper.modules_setup()
Expand All @@ -45,11 +43,6 @@ def test_sundry(self):
# Unload all modules loaded in this test
import_helper.modules_cleanup(*old_modules)

@unittest.skipIf(sys.platform != "win32", "Windows-only test")
def test_sundry_windows(self):
for name in self.windows_only:
import_tool(name)


if __name__ == '__main__':
unittest.main()