Show More
@@ -38,14 +38,6 b' log = logging.getLogger(__name__)' | |||||
38 | # Classes and functions |
|
38 | # Classes and functions | |
39 | #----------------------------------------------------------------------------- |
|
39 | #----------------------------------------------------------------------------- | |
40 |
|
40 | |||
41 | def is_extension_module(filename): |
|
|||
42 | """Return whether the given filename is an extension module. |
|
|||
43 |
|
||||
44 | This simply checks that the extension is either .so or .pyd. |
|
|||
45 | """ |
|
|||
46 | return os.path.splitext(filename)[1].lower() in ('.so','.pyd') |
|
|||
47 |
|
||||
48 |
|
||||
49 | class DocTestSkip(object): |
|
41 | class DocTestSkip(object): | |
50 | """Object wrapper for doctests to be skipped.""" |
|
42 | """Object wrapper for doctests to be skipped.""" | |
51 |
|
43 | |||
@@ -443,10 +435,3 b' class IPDocTestRunner(doctest.DocTestRunner,object):' | |||||
443 | with modified_env({'COLUMNS': '80', 'LINES': '24'}): |
|
435 | with modified_env({'COLUMNS': '80', 'LINES': '24'}): | |
444 | return super(IPDocTestRunner,self).run(test, |
|
436 | return super(IPDocTestRunner,self).run(test, | |
445 | compileflags,out,clear_globs) |
|
437 | compileflags,out,clear_globs) | |
446 |
|
||||
447 |
|
||||
448 | class DocFileCase(doctest.DocFileCase): |
|
|||
449 | """Overrides to provide filename |
|
|||
450 | """ |
|
|||
451 | def address(self): |
|
|||
452 | return (self._dt_test.filename, None, None) |
|
General Comments 0
You need to be logged in to leave comments.
Login now