Show More
@@ -737,6 +737,17 b' class ExtensionDoctest(doctests.Doctest):' | |||||
737 | else: |
|
737 | else: | |
738 | return doctests.Doctest.wantFile(self,filename) |
|
738 | return doctests.Doctest.wantFile(self,filename) | |
739 |
|
739 | |||
|
740 | def wantDirectory(self, directory): | |||
|
741 | """Return whether the given directory should be scanned for tests. | |||
|
742 | ||||
|
743 | Modified version that supports exclusions. | |||
|
744 | """ | |||
|
745 | ||||
|
746 | for pat in self.exclude_patterns: | |||
|
747 | if pat.search(directory): | |||
|
748 | return False | |||
|
749 | return True | |||
|
750 | ||||
740 |
|
751 | |||
741 | class IPythonDoctest(ExtensionDoctest): |
|
752 | class IPythonDoctest(ExtensionDoctest): | |
742 | """Nose Plugin that supports doctests in extension modules. |
|
753 | """Nose Plugin that supports doctests in extension modules. |
General Comments 0
You need to be logged in to leave comments.
Login now