From 5f15e73df19bdf4a625c2d39ee62254e3d1c36cb Mon Sep 17 00:00:00 2001 From: deathaxe Date: Sat, 18 May 2024 10:40:36 +0200 Subject: [PATCH] Drop dummy test cases As commit d5ed19bbfd6cc5a88f280fcd6635edfb494b93f3 introduced dynamic test case discovery using `unittest` default mechanisms, creation of dummy test cases for unavailable is obsolete and therefore removed. --- package_control/tests/test_downloaders.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/package_control/tests/test_downloaders.py b/package_control/tests/test_downloaders.py index a6900dbf..31f11ff0 100644 --- a/package_control/tests/test_downloaders.py +++ b/package_control/tests/test_downloaders.py @@ -143,13 +143,8 @@ class WgetDownloaderTests(unittest.TestCase, DownloaderTestsMixin): if hasattr(downloaders, 'OscryptoDownloader'): class OscryptoDownloaderTests(unittest.TestCase, DownloaderTestsMixin): downloader_class = downloaders.OscryptoDownloader -else: - class OscryptoDownloaderTests(unittest.TestCase): - pass + if hasattr(downloaders, 'WinINetDownloader'): class WinINetDownloaderTests(unittest.TestCase, DownloaderTestsMixin): downloader_class = downloaders.WinINetDownloader -else: - class WinINetDownloaderTests(unittest.TestCase): - pass