cpython: 9ba1f113c3ec (original) (raw)

--- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -1621,20 +1621,6 @@ def printlist(x, width=70, indent=4): test_ossaudiodev test_socketserver """),

--- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -18,7 +18,7 @@ except ImportError: bz2 = support.import_module('bz2') from bz2 import BZ2File, BZ2Compressor, BZ2Decompressor -has_cmdline_bunzip2 = sys.platform not in ("win32", "os2emx") +has_cmdline_bunzip2 = (sys.platform != "win32") class BaseTest(unittest.TestCase): "Base for other testcases."

--- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -596,7 +596,7 @@ class TestMaildir(TestMailbox, unittest. def setUp(self): TestMailbox.setUp(self)

def assertMailboxEmpty(self):

--- a/Lib/test/test_select.py +++ b/Lib/test/test_select.py @@ -5,8 +5,7 @@ import sys import unittest from test import support -@unittest.skipIf(sys.platform[:3] in ('win', 'os2') or [](#l4.7)

+@unittest.skipIf((sys.platform[:3]=='win') or (sys.platform=='riscos'), "can't easily test on this system") class SelectTestCase(unittest.TestCase):

--- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -15,7 +15,7 @@ try: except ImportError: threading = None -if sys.platform in ('os2', 'riscos'): +if sys.platform == 'riscos': raise unittest.SkipTest("Can't test signal on %s" % sys.platform)

--- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -222,7 +222,7 @@ class HelperFunctionsTests(unittest.Test site.PREFIXES = ['xoxo'] dirs = site.getsitepackages()

--- a/Lib/test/test_sundry.py +++ b/Lib/test/test_sundry.py @@ -48,7 +48,6 @@ class TestUntestedModules(unittest.TestC import macurl2path import mailcap import nturl2path

--- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -482,7 +482,7 @@ class SysModuleTest(unittest.TestCase): def test_thread_info(self): info = sys.thread_info self.assertEqual(len(info), 3)

def test_43581(self):

--- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -234,7 +234,7 @@ class TestSysConfig(unittest.TestCase): self.assertTrue(os.path.isfile(config_h), config_h) def test_get_scheme_names(self):

--- a/Lib/test/test_thread.py +++ b/Lib/test/test_thread.py @@ -68,7 +68,7 @@ class ThreadRunningTests(BasicThreadTest thread.stack_size(0) self.assertEqual(thread.stack_size(), 0, "stack_size not reset to default")

tss_supported = True

--- a/Lib/test/test_threadsignals.py +++ b/Lib/test/test_threadsignals.py @@ -8,7 +8,7 @@ from test.support import run_unittest, i thread = import_module('_thread') import time -if sys.platform[:3] in ('win', 'os2') or sys.platform=='riscos': +if (sys.platform[:3] == 'win') or (sys.platform=='riscos'): raise unittest.SkipTest("Can't test signal on %s" % sys.platform) process_pid = os.getpid()

--- a/Python/importlib.h +++ b/Python/importlib.h @@ -4102,87 +4102,82 @@ unsigned char _Py_M__importlib[] = { 12,1,23,1,6,1,4,4,35,3,40,2,117,10,0,0, 0,95,95,105,109,112,111,114,116,95,95,99,2,0,0,0, 0,0,0,0,14,0,0,0,13,0,0,0,67,0,0,0,

};