Skip to content

Commit afa9468

Browse files
roed314claude
andcommitted
Use American spelling in the identify_group test
LMFDB uses American spelling, so "cancelled" becomes "canceled" in two comments and one assertion message. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 2d50e69 commit afa9468

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lmfdb/groups/abstract/test_abstract_groups.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,12 @@ def spy_cancel():
420420
orig[2]()
421421
identify_mod.cancel_alarm = spy_cancel
422422
try:
423-
# over the cap: no factorization, and the alarm is cancelled
423+
# over the cap: no factorization, and the alarm is canceled
424424
identify_mod._parse = lambda desc: (FakeGroup(ZZ(10) ** 7), "permutation")
425425
res = identify_mod.identify_group("(1,2)")
426426
assert res["status"] == "error" and "exceeds the supported bound" in res["error"]
427427
assert not factored, "the order was factored before the cap was checked"
428-
assert len(cancels) == 1, "the alarm was not cancelled on the over-cap path"
428+
assert len(cancels) == 1, "the alarm was not canceled on the over-cap path"
429429
# a timeout while parsing is reported, not raised
430430
identify_mod._parse = raises(AlarmInterrupt())
431431
res = identify_mod.identify_group("(1,2)")
@@ -436,7 +436,7 @@ def spy_cancel():
436436
res = identify_mod.identify_group("(1,2)")
437437
assert res["status"] == "error" and "gap fell over" in res["error"]
438438
assert len(cancels) == 3
439-
# a bad description still short-circuits, with the alarm cancelled
439+
# a bad description still short-circuits, with the alarm canceled
440440
identify_mod._parse = orig[0]
441441
res = identify_mod.identify_group("garbage")
442442
assert res["status"] == "error" and "Unrecognized description" in res["error"]

0 commit comments

Comments
 (0)