skip to navigation
skip to content

nose-exclude 0.1.5

Exclude specific directories from nosetests runs.

Latest Version: 0.4.1


nose-exclude is a Nose plugin that allows you to easily specify directories to be excluded from testing.

Exclude Directories

The --exclude-dir= option is made available after installation of the plugin. The option may be used multiple times to exclude multiple directories from testing. The directory paths provided may be absolute or relative.


$ nosetests --exclude-dir=test_dirs/build \
    --exclude-dir=test_dirs/test_not_me test_dirs
Ran 4 tests in 0.006s


This example will exclude the directories test_dirs/build and test_dirs/test_not_me from nosetests’ test searching.

Using File-Based Exclusion List

The --exclude-dir-file= option can be used to pass in a predefined list of directories contained within a file. nose-exclude expects each directory to be excluded to be on its own line.


$ nosetests --exclude-dir-file=test_dirs/exclude_dirs.txt \
Ran 4 tests in 0.006s


where exclude_dirs.txt might look like:



Please report all bugs (and patches) to

File Type Py Version Uploaded on Size
nose-exclude-0.1.5.tar.gz (md5) Source 2010-04-06 2KB
nose_exclude-0.1.5-py2.6.egg (md5) Python Egg 2.6 2010-04-06 4KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 40 downloads in the last week
  • 32538 downloads in the last month