Skip to content

Commit c08ca0f

Browse files
committed
Fix menu activation bug that only affected python 3.14+, and updated testing suite to test more combinations of python and django
1 parent 42cbd18 commit c08ca0f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

iommi/menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def _set_active(item):
275275
parts = PurePosixPath(unquote(parsed_url)).parts
276276
matching_parts = 0
277277
for item in range(min(len(parts), len(path_parts))):
278-
if parts[item] is path_parts[item]:
278+
if parts[item] == path_parts[item]:
279279
matching_parts += 1
280280

281281
if matching_parts > current_parts_matching:

tox.ini

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
[tox]
2-
envlist = py3-django{31,32,40,41,42,50},pypy3-django{42}
2+
envlist =
3+
py311-django{32,40,41,42,50,52}
4+
py312-django{32,40,41,42,50,52,60}
5+
py313-django{41,42,50,52,60}
6+
py314-django60
37

48
[testenv]
59
commands = {envpython} -m pytest {posargs}
610
deps =
7-
django31: Django >= 3.1, <3.2
811
django32: Django >= 3.2, <3.3
912
django40: Django >= 4.0, <4.1
1013
django41: Django >= 4.1, <4.2
1114
django42: Django >= 4.2, <4.3
1215
django50: Django >= 5.0, <5.1
16+
django52: Django >= 5.2, <5.3
17+
django60: Django >= 6.0, <6.1
1318
-rtest_requirements.txt
1419
setenv =
1520
DJANGO_SETTINGS_MODULE=tests.settings

0 commit comments

Comments
 (0)