diff options
| author | desmaj <matthew.desmarais@gmail.com> | 2013-03-18 00:03:39 -0400 |
|---|---|---|
| committer | desmaj <matthew.desmarais@gmail.com> | 2013-03-18 00:03:39 -0400 |
| commit | 0c8152d5d237bcfcb846e17f7907ea8a1ec352bf (patch) | |
| tree | 6b66e1eaa7014a0e9d346d806397c27934cce985 /tests/test_misc.py | |
| parent | 65586d18d36f28da6bdf99aada5d821cc6b2846d (diff) | |
| download | python-coveragepy-0c8152d5d237bcfcb846e17f7907ea8a1ec352bf.tar.gz | |
Removed redundant code; Changed a setup.py test to ensure that the proper setup.py is imported; Changed the 'oddball' tests to use a filename whitelist instead of a blacklist (so that tests run better under instrumental
Diffstat (limited to 'tests/test_misc.py')
| -rw-r--r-- | tests/test_misc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_misc.py b/tests/test_misc.py index ef4a877..23bd69f 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -1,4 +1,5 @@ """Tests of miscellaneous stuff.""" +import sys from coverage.misc import Hasher, file_be_gone from coverage import __version__, __url__ @@ -61,6 +62,8 @@ class SetupPyTest(CoverageTest): self.assertIn("Ned Batchelder", out[3]) def test_more_metadata(self): + # Let's be sure we pick up our own setup.py + sys.path.insert(0, '') from setup import setup_args classifiers = setup_args['classifiers'] |
