GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python3/python3-tests.patch at master · pld-linux/python3 Expand file tree/ Copy pathpython3-tests.patchMore file actions 41 lines (40 loc) · 2.08 KB / Copy pathpython3-tests.patchFile metadata and controls41 lines (40 loc) · 2.08 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 diff -urNp -x '*.orig' Python-3.9.2.org/Lib/test/test_imaplib.py Python-3.9.2/Lib/test/test_imaplib.py --- Python-3.9.2.org/Lib/test/test_imaplib.py 2021-02-19 13:31:44.000000000 +0100 +++ Python-3.9.2/Lib/test/test_imaplib.py 2021-02-25 18:42:23.540101637 +0100 @@ -77,7 +77,7 @@ class TestImaplib(unittest.TestCase): @socket_helper.skip_if_tcp_blackhole def test_imap4_host_default_value(self): # Check whether the IMAP4_PORT is truly unavailable. - with socket.socket() as s: + with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: try: s.connect(('', imaplib.IMAP4_PORT)) self.skipTest( @@ -173,7 +173,7 @@ class TestImaplib(unittest.TestCase): # This is the exception that should be raised. expected_errnos = socket_helper.get_socket_conn_refused_errs() with self.assertRaises(OSError) as cm: - imaplib.IMAP4() + imaplib.IMAP4('0.0.0.0') self.assertIn(cm.exception.errno, expected_errnos) def test_astring(self): --- a/Lib/test/test_site.py 2024-10-07 07:02:14.000000000 +0200 +++ b/Lib/test/test_site.py.new 2024-10-08 14:14:57.416459147 +0200 @@ -326,14 +326,14 @@ class HelperFunctionsTests(unittest.Test if os.sep == '/': # OS X, Linux, FreeBSD, etc if sys.platlibdir != "lib": - self.assertEqual(len(dirs), 2) + self.assertEqual(len(dirs), 6) wanted = os.path.join('xoxo', sys.platlibdir, f'python{sysconfig._get_python_version_abi()}', 'site-packages') self.assertEqual(dirs[0], wanted) else: - self.assertEqual(len(dirs), 1) + self.assertEqual(len(dirs), 3) - wanted = os.path.join('xoxo', 'lib', + wanted = os.path.join('xoxo', 'share', f'python{sysconfig._get_python_version_abi()}', 'site-packages') self.assertEqual(dirs[-1], wanted) |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |