Skip to content

Commit

Permalink
sagemathgh-38091: Fix doctest when the optional benzene is installed
Browse files Browse the repository at this point in the history
    
```
**********************************************************************
File "src/sage/features/__init__.py", line 384, in
sage.features.Feature.hide
Failed example:
    len(list(graphs.fusenes(2)))  # optional - benzene, needs
sage.graphs
Expected nothing
Got:
    1
**********************************************************************
1 item had failures:
   1 of   6 in sage.features.Feature.hide
    [146 tests, 1 failure, 3.74 s]
**********************************************************************
```

Comes from 1ade282
    
URL: sagemath#38091
Reported by: Volker Braun
Reviewer(s):
  • Loading branch information
Release Manager committed May 26, 2024
2 parents 76ed7f5 + f2694d0 commit 646c25c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sage/features/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ def hide(self):
sage: Benzene().unhide() # optional - benzene, needs sage.graphs
sage: len(list(graphs.fusenes(2))) # optional - benzene, needs sage.graphs
1
"""
self._hidden = True

Expand Down

0 comments on commit 646c25c

Please sign in to comment.