aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2025-04-04 04:42:14 +0100
committerdirkf <fieldhouse@gmx.net>2025-04-08 01:59:00 +0100
commitcedeeed56f6ed61646a33e06397f9a059dbc9d90 (patch)
tree7933dc133903d026b5af6aae25c5cc9d346d88bc /test
parentadd46228701d78444e20afdde4beafa3268344f2 (diff)
[cache] Align further with yt-dlp
* use compat_os_makedirs * support non-ASCII characters in cache key * improve logging
Diffstat (limited to 'test')
-rw-r--r--test/test_cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_cache.py b/test/test_cache.py
index 931074aa1..21dfb6cfc 100644
--- a/test/test_cache.py
+++ b/test/test_cache.py
@@ -63,7 +63,7 @@ class TestCache(unittest.TestCase):
obj = {'x': 1, 'y': ['รค', '\\a', True]}
c.store('test_cache', 'k.', obj)
self.assertEqual(c.load('test_cache', 'k.', min_ver='1970.01.01'), obj)
- new_version = '.'.join(('%d' % ((v + 1) if i == 0 else v, )) for i, v in enumerate(version_tuple(__version__)))
+ new_version = '.'.join(('%0.2d' % ((v + 1) if i == 0 else v, )) for i, v in enumerate(version_tuple(__version__)))
self.assertIs(c.load('test_cache', 'k.', min_ver=new_version), None)