Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Nov 24, 2023
1 parent d328913 commit 817c49c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
9 changes: 3 additions & 6 deletions src/sage/misc/cython.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,13 @@ def cython(filename, verbose=0, compile_message=False,
....: ''')
In Cython 0.29.33 using `from PACKAGE cimport MODULE` is broken
when `PACKAGE` is a namespace package, see :trac:`35322`::
when `PACKAGE` is a namespace package, see :trac:`35322`
(but as of now sage.misc is not a namespace package, so this passes)::
sage: cython('''
....: from sage.misc cimport cachefunc
....: ''')
Traceback (most recent call last):
...
RuntimeError: Error compiling Cython file:
...
...: 'sage/misc.pxd' not found
"""
if not filename.endswith('pyx'):
print("Warning: file (={}) should have extension .pyx".format(filename), file=sys.stderr)
Expand Down
5 changes: 0 additions & 5 deletions src/sage_setup/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,6 @@ def installed_files_by_module(site_packages, modules=('sage',)):
sage: f2
'sage/structure/....pyc'
Namespace packages::
sage: files_by_module['sage.graphs.graph_decompositions']
set()
This takes about 30ms with warm cache::
sage: timeit('installed_files_by_module(site_packages)', # random output
Expand Down

0 comments on commit 817c49c

Please sign in to comment.