Skip to content

Commit 154a69f

Browse files
refactored to use f string syntax
1 parent a999893 commit 154a69f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ class TestCacheDecoratorRedis(TestCacheDecoratorMemory):
426426
@classmethod
427427
def setUpClass(cls):
428428
if not plugin.HAS_REDIS:
429-
print('The package "redis" is not installed, skipping Redis dependent tests (%s).' % (cls.__name__,))
429+
print(f'The package "redis" is not installed, skipping Redis dependent tests ({cls.__name__}).')
430430
return cls.tearDownClass()
431431
helpers.cache.adapter_set(helpers.RedisCache())
432432

@@ -614,7 +614,7 @@ class TestRedisCache(TestMemoryCache):
614614
def setUpClass(cls):
615615
"""Set the current cache adapter to an instance of RedisCache() and make it available through ``self.cache``"""
616616
if not plugin.HAS_REDIS:
617-
print('The package "redis" is not installed, skipping Redis dependent tests (%s).' % (cls.__name__,))
617+
print(f'The package "redis" is not installed, skipping Redis dependent tests ({cls.__name__}).')
618618
return cls.tearDownClass()
619619
helpers.cache.adapter_set(helpers.RedisCache())
620620
cls.cache = helpers.cache

0 commit comments

Comments
 (0)