From b4e81dd5cba130f0a2f47771bb2fd4d289ef745d Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 21 Jun 2022 15:36:09 +0300 Subject: tests: test_file_utils: Replace pytest.mark.skip with unittest.skip "python setup.py test" won't skip "pytest.mark.skip" thereby leading to build failure when you try to package gn3. --- tests/unit/test_file_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit/test_file_utils.py') diff --git a/tests/unit/test_file_utils.py b/tests/unit/test_file_utils.py index 079293e..ed973b6 100644 --- a/tests/unit/test_file_utils.py +++ b/tests/unit/test_file_utils.py @@ -85,7 +85,7 @@ extracting the file""" "error": "gzip failed to unpack file" }) - @pytest.mark.skip(reason="ipfs http client breaks in Python > 38") + @unittest.skip("ipfs http client breaks in Python > 38") @pytest.mark.unit_test def test_cache_ipfs_file_cache_hit(self): """Test that the correct file location is returned if there's a cache hit""" @@ -106,7 +106,7 @@ extracting the file""" os.rmdir(test_dir) self.assertEqual(file_loc, f"{test_dir}/genotype.txt") - @pytest.mark.skip(reason="ipfs http client breaks in Python > 38") + @unittest.skip("ipfs http client breaks in Python > 38") @pytest.mark.unit_test @mock.patch("gn3.fs_helpers.ipfshttpclient") def test_cache_ipfs_file_cache_miss(self, -- cgit v1.2.3