Skip to content

Commit 763f0f9

Browse files
authored
Fix error when cacheprovider plugin disabled or missing (#56)
* Fixes #54
1 parent fd8e0cb commit 763f0f9

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,12 @@ from being registered so its hooks won't be registered and its command line opti
231231
Changelog
232232
--------------
233233

234+
v1.1.1 (2024-01-20)
235+
+++++++++++++++++++
236+
237+
* Fixes #54 - ``AttributeError`` when cacheprovider plugin disabled. Thanks @jhanm12
238+
239+
234240
v1.1.0 (2022-12-03)
235241
+++++++++++++++++++
236242

random_order/cache.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010

1111
def process_failed_first_last_failed(session, config, items):
12+
if not hasattr(config, 'cache'):
13+
return
14+
1215
if not config.getoption('failedfirst'):
1316
return
1417

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def read(fname):
1414

1515
setup(
1616
name='pytest-random-order',
17-
version='1.1.0',
17+
version='1.1.1',
1818
author='Jazeps Basko',
1919
author_email='jazeps.basko@gmail.com',
2020
maintainer='Jazeps Basko',

0 commit comments

Comments
 (0)