MCPcopy Create free account
hub / github.com/ipython/ipython / is_extension_module

Function is_extension_module

IPython/testing/plugin/ipdoctest.py:60–65  ·  view source on GitHub ↗

Return whether the given filename is an extension module. This simply checks that the extension is either .so or .pyd.

(filename)

Source from the content-addressed store, hash-verified

58#-----------------------------------------------------------------------------
59
60def is_extension_module(filename):
61 """Return whether the given filename is an extension module.
62
63 This simply checks that the extension is either .so or .pyd.
64 """
65 return os.path.splitext(filename)[1].lower() in ('.so','.pyd')
66
67
68class DocTestSkip(object):

Callers 1

loadTestsFromFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected