mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
ignore cache write test case on older python versions
This commit is contained in:
parent
59b1899d79
commit
b7233dfb2e
1 changed files with 4 additions and 0 deletions
|
|
@ -545,6 +545,10 @@ class Test_SignatureDataController(unittest.TestCase):
|
||||||
with self.assertRaises(fdroidserver.scanner.SignatureDataVersionMismatchException):
|
with self.assertRaises(fdroidserver.scanner.SignatureDataVersionMismatchException):
|
||||||
sdc.check_data_version()
|
sdc.check_data_version()
|
||||||
|
|
||||||
|
@unittest.skipIf(
|
||||||
|
sys.version_info < (3, 9, 0),
|
||||||
|
"mock_open doesn't allow easy access to written data in older python versions",
|
||||||
|
)
|
||||||
def test_write_to_cache(self):
|
def test_write_to_cache(self):
|
||||||
open_func = mock.mock_open()
|
open_func = mock.mock_open()
|
||||||
sdc = fdroidserver.scanner.SignatureDataController('nnn', 'fff.yml', 'https://example.com/test.json')
|
sdc = fdroidserver.scanner.SignatureDataController('nnn', 'fff.yml', 'https://example.com/test.json')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue