From 82036636950c1f408896480c55bc36a484375566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heinz-Alexander=20F=C3=BCtterer?= <35225576+afuetterer@users.noreply.github.com> Date: Tue, 24 Feb 2026 09:12:14 +0100 Subject: [PATCH] test: remove failing unit test As discussed in #442 this test is broken and the logic it is testing is outside of tika-python anyway. --- tika/tests/test_ssl_link.py | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 tika/tests/test_ssl_link.py diff --git a/tika/tests/test_ssl_link.py b/tika/tests/test_ssl_link.py deleted file mode 100644 index 3f4eb8f8..00000000 --- a/tika/tests/test_ssl_link.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf8 - -import unittest -import tempfile -import os -import shutil - -try: - from urllib import urlretrieve -except ImportError: - from urllib.request import urlretrieve - - -class CreateTest(unittest.TestCase): - """This is standalone test for the ssl link below, to verify it this is - to the environemnt of the any commit - """ - def setUp(self): - self.folder = tempfile.mkdtemp() - - def tearDown(self): - if os.path.exists(self.folder): - shutil.rmtree(self.folder) - - def test_url(self): - url = 'https://upload.wikimedia.org/wikipedia/commons/b/b7/X_logo.jpg' - path = os.path.join(self.folder, "pic.jpg") - urlretrieve(url, path) - self.assertTrue(os.path.exists(path)) - stat = os.stat(path) - self.assertGreater(stat.st_size, 10000) - -if __name__ == '__main__': - unittest.main() - -