Skip to content

Commit dc9ad12

Browse files
committed
Merge pull request #1094 from nicoddemus/cache-fixture-docstring-fix
fix docstring for cache fixture regarding ``/`` on keys
2 parents e9240f7 + a808e09 commit dc9ad12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_pytest/cacheprovider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ def cache(request):
192192
cache.get(key, default)
193193
cache.set(key, value)
194194
195-
Keys must be strings not containing a "/" separator. Add a unique identifier
196-
(such as plugin/app name) to avoid clashes with other cache users.
195+
Keys must be a ``/`` separated value, where the first part is usually the
196+
name of your plugin or application to avoid clashes with other cache users.
197197
198198
Values can be any object handled by the json stdlib module.
199199
"""

0 commit comments

Comments
 (0)