Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
d963bdff
Commit
d963bdff
authored
6 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip an openmp documentation test on MacOS.
parent
98bef7ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
docs/examples/userguide/numpy_tutorial/compute_prange.pyx
docs/examples/userguide/numpy_tutorial/compute_prange.pyx
+5
-0
runtests.py
runtests.py
+12
-2
No files found.
docs/examples/userguide/numpy_tutorial/compute_prange.pyx
View file @
d963bdff
# tag: openmp
# You can ignore the previous line.
# It's for internal testing of the cython documentation.
# distutils: extra_compile_args=-fopenmp
# distutils: extra_link_args=-fopenmp
import
numpy
as
np
cimport
cython
from
cython.parallel
import
prange
...
...
This diff is collapsed.
Click to expand it.
runtests.py
View file @
d963bdff
...
...
@@ -62,6 +62,15 @@ except ImportError:
def
__nonzero__
(
self
):
return
bool
(
self
.
_dict
)
try
:
from
unittest
import
SkipTest
except
ImportError
:
def
skip_test
(
reason
):
print
(
"Skipping test: %s"
%
reason
)
else
:
def
skip_test
(
reason
):
raise
SkipTest
(
reason
)
try
:
basestring
except
NameError
:
...
...
@@ -1015,7 +1024,8 @@ class CythonCompileTestCase(unittest.TestCase):
if matcher(module, self.tags):
newext = fixer(extension)
if newext is EXCLUDE_EXT:
return
return skip_test("Test '%s' excluded due to tags '%s'" % (
self.name, ', '.join(self.tags)))
extension = newext or extension
if self.language == 'cpp':
extension.language = 'c++'
...
...
@@ -1955,7 +1965,7 @@ def main():
"tests (the ones which are deactivated with '--no-file'."))
parser.add_option("--examples-dir", dest="examples_dir",
default=os.path.join(DISTDIR, 'docs', 'examples'),
help="
working directory
")
help="
Directory to look for documentation example tests
")
parser.add_option("--work-dir", dest="work_dir", default=os.path.join(os.getcwd(), 'TEST_TMP'),
help="working directory")
parser.add_option("--cython-dir", dest="cython_dir", default=os.getcwd(),
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment