lp:~cjwatson/storm/fix-py311-tests
- Get this branch:
- bzr branch lp:~cjwatson/storm/fix-py311-tests
Branch merges
- Guruprasad: Approve
-
Diff: 22 lines (+12/-1)1 file modifiedstorm/tests/event.py (+12/-1)
Branch information
Recent revisions
- 582. By Colin Watson
-
Fix tests on Python 3.11.
Tests were failing as follows:
=====
======= ======= ======= ======= ======= ======= ======= ======= ======= ==
ERROR: test_hook_unhook_ emit (storm. tests.event. EventTest. test_hook_ unhook_ emit)
------------ ------- ------- ------- ------- ------- ------- ------- ------- --
Traceback (most recent call last):
File "storm/tests/mocker. py", line 101, in test_method_wrapper
result = test_method()
^^^^^^ ^^^^^^^
File "storm/tests/event. py", line 61, in test_hook_ unhook_ emit
self.assertEqual( sorted( called1) , [
^^^^^ ^^^^^^^ ^^^
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. - 576. By Colin Watson
-
[r=ilasc] Clarify exception for a property with allow_none=False and default=None.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:storm