File skip-test-requiring-network.patch of Package python-awscrt

diff -Nru aws-crt-python-0.31.2.orig/test/test_aiohttp_client.py aws-crt-python-0.31.2/test/test_aiohttp_client.py
--- aws-crt-python-0.31.2.orig/test/test_aiohttp_client.py	2026-02-12 19:06:36.000000000 +0100
+++ aws-crt-python-0.31.2/test/test_aiohttp_client.py	2026-02-15 11:34:39.055485729 +0100
@@ -290,6 +290,7 @@
 
         return connection
 
+    @unittest.skip("Requires network")
     async def _test_h2_client(self):
         url = urlparse("https://d1cz66xoahf9cl.cloudfront.net/http_test_doc.txt")
         connection = await self._new_h2_client_connection(url)
@@ -311,6 +312,7 @@
 
         await connection.close()
 
+    @unittest.skip("Requires network")
     async def _test_h2_manual_write_exception(self):
         url = urlparse("https://d1cz66xoahf9cl.cloudfront.net/http_test_doc.txt")
         connection = await self._new_h2_client_connection(url)
@@ -430,6 +432,7 @@
         finally:
             self._stop_server()
 
+    @unittest.skip("Requires network")
     async def _test_cross_thread_http2_client(self):
         """Test using an HTTP/2 client from a different thread/event loop."""
         url = urlparse("https://d1cz66xoahf9cl.cloudfront.net/http_test_doc.txt")
@@ -691,6 +694,7 @@
         self.assertEqual(10, len(response.body))
         await connection.close()
 
+    @unittest.skip("Requires network")
     def test_h1_manual_window_management_happy_path(self):
         asyncio.run(self._test_h1_manual_window_management_happy_path())
 
@@ -722,6 +726,7 @@
         self.assertGreater(len(response.body), 0, "No data received")
         await connection.close()
 
+    @unittest.skip("Requires network")
     def test_h2_manual_window_management_happy_path(self):
         asyncio.run(self._test_h2_manual_window_management_happy_path())
 
@@ -762,6 +767,7 @@
         self.assertEqual(len(chunks_received), 10, "Should receive exactly 10 chunks")
         await connection.close()
 
+    @unittest.skip("Requires network")
     def test_h2_stream_flow_control_blocks_and_resumes(self):
         asyncio.run(self._test_h2_stream_flow_control_blocks_and_resumes())
 
@@ -803,6 +809,7 @@
         self.assertEqual(len(chunks_received), 100, "Should receive exactly 100 chunks")
         await connection.close()
 
+    @unittest.skip("Requires network")
     def test_h1_stream_flow_control_blocks_and_resumes(self):
         asyncio.run(self._test_h1_stream_flow_control_blocks_and_resumes())
 
diff -Nru aws-crt-python-0.31.2.orig/test/test_http_client.py aws-crt-python-0.31.2/test/test_http_client.py
--- aws-crt-python-0.31.2.orig/test/test_http_client.py	2026-02-12 19:06:36.000000000 +0100
+++ aws-crt-python-0.31.2/test/test_http_client.py	2026-02-15 11:32:30.115453571 +0100
@@ -354,6 +354,7 @@
                                                       tls_connection_options=tls_conn_opt)
         return connection_future.result(self.timeout)
 
+    @unittest.skip("Requires network")
     def test_h2_client(self):
         url = urlparse("https://d1cz66xoahf9cl.cloudfront.net/http_test_doc.txt")
         connection = self._new_h2_client_connection(url)
@@ -376,6 +377,7 @@
 
         self.assertEqual(None, connection.close().exception(self.timeout))
 
+    @unittest.skip("Requires network")
     def test_h2_manual_write_exception(self):
         url = urlparse("https://d1cz66xoahf9cl.cloudfront.net/http_test_doc.txt")
         connection = self._new_h2_client_connection(url)
diff -Nru aws-crt-python-0.31.2.orig/test/test_io.py aws-crt-python-0.31.2/test/test_io.py
--- aws-crt-python-0.31.2.orig/test/test_io.py	2026-02-12 19:06:36.000000000 +0100
+++ aws-crt-python-0.31.2/test/test_io.py	2026-02-15 11:36:23.312116529 +0100
@@ -33,6 +33,7 @@
         event_loop_group_two = EventLoopGroup.get_or_create_static_default()
         self.assertTrue(event_loop_group_one == event_loop_group_two)
 
+    @unittest.skip("Requires network")
     def test_shutdown_complete_singleton(self):
         event_loop_group = EventLoopGroup.get_or_create_static_default()
         shutdown_event = event_loop_group.shutdown_event
openSUSE Build Service is sponsored by