Skip to content

Commit

Permalink
Trac #33794: modules/fp_graded/morphism.py test failure
Browse files Browse the repository at this point in the history
Happened when doctesting with `--long --all` and 64 threads, both on
x86_64 and on aarch64. Possibly related to #30680.

{{{
sage -t --long --random-seed=339659929997122211039564167058187187237
/nix/store/bfvc3kipmpmapbikj4zjlgdnglv5hrx2-sage-
src-9.6.rc3/src/sage/modules/fp_graded/morphism.py
**********************************************************************
File "/nix/store/bfvc3kipmpmapbikj4zjlgdnglv5hrx2-sage-
src-9.6.rc3/src/sage/modules/fp_graded/morphism.py", line 1571, in
sage.modules.fp_graded.morphism.FPModuleMorphism.image
Failed example:
    K.is_injective()  # long time
Exception raised:
    Traceback (most recent call last):
      File "/nix/store/s6xgkv83xziazw85fvay1zqigfd972jb-
python3-3.9.12-env/lib/python3.9/site-packages/sage/doctest/forker.py",
line 695, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/nix/store/s6xgkv83xziazw85fvay1zqigfd972jb-
python3-3.9.12-env/lib/python3.9/site-packages/sage/doctest/forker.py",
line 1101, in compile_and_execute
        exec(compiled, globs)
      File "<doctest
sage.modules.fp_graded.morphism.FPModuleMorphism.image[11]>", line 1, in
<module>
        K.is_injective()  # long time
      File "/nix/store/s6xgkv83xziazw85fvay1zqigfd972jb-
python3-3.9.12-env/lib/python3.9/site-
packages/sage/modules/fp_graded/steenrod/morphism.py", line 122, in
is_injective
        finite_algebra = SteenrodAlgebra_generic(algebra.prime(),
profile=self.profile())
      File "/nix/store/s6xgkv83xziazw85fvay1zqigfd972jb-
python3-3.9.12-env/lib/python3.9/site-
packages/sage/modules/fp_graded/steenrod/morphism.py", line 90, in
profile
        return enveloping_profile_elements(elements,
      File "/nix/store/s6xgkv83xziazw85fvay1zqigfd972jb-
python3-3.9.12-env/lib/python3.9/site-
packages/sage/modules/fp_graded/steenrod/profile.py", line 132, in
enveloping_profile_elements
        profiles = [profile_elt(x) for x in alist if x != 0]
      File "/nix/store/s6xgkv83xziazw85fvay1zqigfd972jb-
python3-3.9.12-env/lib/python3.9/site-
packages/sage/modules/fp_graded/steenrod/profile.py", line 132, in
<listcomp>
        profiles = [profile_elt(x) for x in alist if x != 0]
      File "/nix/store/s6xgkv83xziazw85fvay1zqigfd972jb-
python3-3.9.12-env/lib/python3.9/site-
packages/sage/modules/fp_graded/steenrod/profile.py", line 82, in
profile_elt
        minprofile = [max(0, n.exact_log(char) + 1) for n in elt]
      File "/nix/store/s6xgkv83xziazw85fvay1zqigfd972jb-
python3-3.9.12-env/lib/python3.9/site-
packages/sage/modules/fp_graded/steenrod/profile.py", line 82, in
<listcomp>
        minprofile = [max(0, n.exact_log(char) + 1) for n in elt]
    AttributeError: 'int' object has no attribute 'exact_log'
}}}

URL: https://trac.sagemath.org/33794
Reported by: gh-collares
Ticket author(s): John Palmieri
Reviewer(s): Travis Scrimshaw
  • Loading branch information
Release Manager committed May 22, 2022
2 parents 7037fba + 0b48601 commit 2ca0530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/modules/fp_graded/steenrod/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def profile_elt(elt, char=2):
pass

if char == 2:
minprofile = [max(0, n.exact_log(char) + 1) for n in elt]
minprofile = [max(0, ZZ(n).exact_log(char) + 1) for n in elt]
return find_min_profile(minprofile, char)

# odd primes:
Expand Down

0 comments on commit 2ca0530

Please sign in to comment.