Skip to content

Commit 78b0aef

Browse files
committed
Fix tests
1 parent d450e0a commit 78b0aef

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/sage/combinat/cluster_algebra_quiver/mutation_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ def load_data(n: int, user=True) -> dict:
12731273
# we check
12741274
# - if the data is stored by the user, and if this is not the case
12751275
# - if the data is stored by the optional package install
1276-
paths = list(sage_data_paths())
1276+
paths = [Path(path) for path in sage_data_paths()]
12771277
if user:
12781278
paths.append(Path(DOT_SAGE))
12791279
data = {}

src/sage/databases/sloane.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage.doctest: needs sloane_database
12
"""
23
Local copy of the On-Line Encyclopedia of Integer Sequences
34
@@ -11,29 +12,29 @@
1112
1213
::
1314
14-
sage: SloaneEncyclopedia[60843] # optional - sloane_database
15+
sage: SloaneEncyclopedia[60843]
1516
[1, 6, 21, 107, 47176870]
1617
1718
To get the name of a sequence, type
1819
1920
::
2021
21-
sage: SloaneEncyclopedia.sequence_name(1) # optional - sloane_database
22+
sage: SloaneEncyclopedia.sequence_name(1)
2223
'Number of groups of order n.'
2324
2425
To search locally for a particular subsequence, type
2526
2627
::
2728
28-
sage: SloaneEncyclopedia.find([1,2,3,4,5], 1) # optional - sloane_database
29+
sage: SloaneEncyclopedia.find([1,2,3,4,5], 1)
2930
[(15, [1, 2, 3, 4, 5, 7, 7, 8, 9, 11, 11, 13, 13, 16, 16, 16, 17, 19, 19, 23, 23, 23, 23, 25, 25, 27, 27, 29, 29, 31, 31, 32, 37, 37, 37, 37, 37, 41, 41, 41, 41, 43, 43, 47, 47, 47, 47, 49, 49, 53, 53, 53, 53, 59, 59, 59, 59, 59, 59, 61, 61, 64, 64, 64, 67, 67, 67, 71, 71, 71, 71, 73])]
3031
3132
The default maximum number of results is 30, but to return up to
3233
100, type
3334
3435
::
3536
36-
sage: SloaneEncyclopedia.find([1,2,3,4,5], 100) # optional - sloane_database
37+
sage: SloaneEncyclopedia.find([1,2,3,4,5], 100)
3738
[(15, [1, 2, 3, 4, 5, 7, 7, 8, 9, 11, 11, ...
3839
3940
Results in either case are of the form [ (number, list) ].
@@ -160,7 +161,7 @@ def is_installed(self):
160161
161162
EXAMPLES::
162163
163-
sage: SloaneEncyclopedia.is_installed() # optional - sloane_database
164+
sage: SloaneEncyclopedia.is_installed()
164165
True
165166
"""
166167
return os.path.exists(self.__file__) and os.path.exists(self.__file_names__)
@@ -338,7 +339,7 @@ def sequence_name(self, N):
338339
339340
EXAMPLES::
340341
341-
sage: SloaneEncyclopedia.sequence_name(1) # optional - sloane_database
342+
sage: SloaneEncyclopedia.sequence_name(1)
342343
'Number of groups of order n.'
343344
"""
344345
self.load()

0 commit comments

Comments
 (0)