Skip to content

Commit 854e6b6

Browse files
authored
Merge pull request #82 from smarie/fix_issue_81
fixture closure now supports reordering when no unions are present
2 parents 59dca92 + 969d454 commit 854e6b6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 1.13.2 - in progress - bugfixes
4+
5+
- Suppressed annoying warning when not relevant. Fixes [#81](https://github.com/smarie/python-pytest-cases/issues/81)
6+
37
### 1.13.1 - packaging improvements
48

59
- packaging improvements: set the "universal wheel" flag to 1, and cleaned up the `setup.py`. In particular removed dependency to `six` for setup and added `py.typed` file. Fixes [#78](https://github.com/smarie/python-pytest-cases/issues/78)

pytest_cases/plugin.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,12 @@ def __getitem__(self, item):
136136
return self.to_list()[item]
137137

138138
def __setitem__(self, key, value):
139-
# This is called in Pytest 4+. TODO how should we behave ?
140-
warn("WARNING the new order is not taken into account !!")
139+
# This is called in Pytest 4+.
140+
if self.has_split():
141+
# TODO how should we behave ?
142+
warn("WARNING the new order is not taken into account !!")
143+
else:
144+
self.to_list()[key] = value
141145

142146
def append(self, item):
143147
"""

0 commit comments

Comments
 (0)