Skip to content

Commit

Permalink
Fix error when cacheprovider plugin disabled or missing (#56)
Browse files Browse the repository at this point in the history
* Fixes #54
  • Loading branch information
jbasko committed Jan 20, 2024
1 parent fd8e0cb commit 763f0f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ from being registered so its hooks won't be registered and its command line opti
Changelog
--------------

v1.1.1 (2024-01-20)
+++++++++++++++++++

* Fixes #54 - ``AttributeError`` when cacheprovider plugin disabled. Thanks @jhanm12


v1.1.0 (2022-12-03)
+++++++++++++++++++

Expand Down
3 changes: 3 additions & 0 deletions random_order/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@


def process_failed_first_last_failed(session, config, items):
if not hasattr(config, 'cache'):
return

if not config.getoption('failedfirst'):
return

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def read(fname):

setup(
name='pytest-random-order',
version='1.1.0',
version='1.1.1',
author='Jazeps Basko',
author_email='jazeps.basko@gmail.com',
maintainer='Jazeps Basko',
Expand Down

0 comments on commit 763f0f9

Please sign in to comment.