Merge lp:~cjwatson/storm/fix-py311-tests into lp:storm
Status: | Merged |
---|---|
Merged at revision: | 583 |
Proposed branch: | lp:~cjwatson/storm/fix-py311-tests |
Merge into: | lp:storm |
Diff against target: |
22 lines (+12/-1) 1 file modified
storm/tests/event.py (+12/-1) |
To merge this branch: | bzr merge lp:~cjwatson/storm/fix-py311-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guruprasad | Approve | ||
Review via email: mp+461676@code.launchpad.net |
Commit message
Fix tests on Python 3.11.
Description of the change
Tests were failing as follows:
=====
ERROR: test_hook_
-----
Traceback (most recent call last):
File "storm/
result = test_method()
File "storm/
self.
TypeError: '<' not supported between instances of 'Marker' and 'Marker'
This seems to have been prompted by a change to the `list.sort` implementation in Python 3.11 that I somehow failed to notice before, but it's easily fixed by giving `Marker` a few trivial comparison methods.
LGTM 👍