]> git.pld-linux.org Git - packages/python3.git/blob - python3-tests.patch
8baa77aada721a4ec1407049f04b0ce3dd9db0cc
[packages/python3.git] / python3-tests.patch
1 --- Python-3.7.4/Lib/test/test_imaplib.py~      2019-07-08 20:03:50.000000000 +0200
2 +++ Python-3.7.4/Lib/test/test_imaplib.py       2019-08-05 19:25:53.119629647 +0200
3 @@ -73,7 +73,7 @@ class TestImaplib(unittest.TestCase):
4  
5      def test_imap4_host_default_value(self):
6          # Check whether the IMAP4_PORT is truly unavailable.
7 -        with socket.socket() as s:
8 +        with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
9              try:
10                  s.connect(('', imaplib.IMAP4_PORT))
11                  self.skipTest(
12 @@ -84,7 +84,7 @@ class TestImaplib(unittest.TestCase):
13          # This is the exception that should be raised.
14          expected_errnos = support.get_socket_conn_refused_errs()
15          with self.assertRaises(OSError) as cm:
16 -            imaplib.IMAP4()
17 +            imaplib.IMAP4('0.0.0.0')
18          self.assertIn(cm.exception.errno, expected_errnos)
19  
20  
21 --- Python-3.9.1/Lib/test/test_unicodedata.py~  2020-12-07 15:02:38.000000000 +0100
22 +++ Python-3.9.1/Lib/test/test_unicodedata.py   2021-02-06 11:25:21.864427644 +0100
23 @@ -11,7 +11,7 @@ from http.client import HTTPException
24  import sys
25  import unicodedata
26  import unittest
27 -from test.support import open_urlresource, requires_resource, script_helper
28 +from test.support import open_urlresource, requires_resource, script_helper, is_resource_enabled
29  
30  
31  class UnicodeMethodsTest(unittest.TestCase):
32 @@ -320,6 +320,8 @@ class NormalizationTest(unittest.TestCas
33          data = [int(x, 16) for x in data.split(" ")]
34          return "".join([chr(x) for x in data])
35  
36 +    @unittest.skipUnless(is_resource_enabled('network'),
37 +                         'network is not enabled')
38      def test_normalization(self):
39          TESTDATAFILE = "NormalizationTest.txt"
40          TESTDATAURL = f"http://www.pythontest.net/unicode/{unicodedata.unidata_version}/{TESTDATAFILE}"
This page took 0.019878 seconds and 2 git commands to generate.