diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-24 19:45:12 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-24 19:45:12 -0500 |
| commit | 693f20d40fca6b41ac629665901c350cd3dcd4e8 (patch) | |
| tree | adc610696f36d647106178559f77365bb847d02f /setuptools/tests/test_develop.py | |
| parent | 731c83fd5ebe79a7643465e68310c11387b427e8 (diff) | |
| download | python-setuptools-git-693f20d40fca6b41ac629665901c350cd3dcd4e8.tar.gz | |
Use quiet context to suppress stdout.
Diffstat (limited to 'setuptools/tests/test_develop.py')
| -rw-r--r-- | setuptools/tests/test_develop.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py index 962c4f3c..f0adcb18 100644 --- a/setuptools/tests/test_develop.py +++ b/setuptools/tests/test_develop.py @@ -65,12 +65,8 @@ class TestDevelopTest: cmd.ensure_finalized() cmd.install_dir = site.USER_SITE cmd.user = 1 - old_stdout = sys.stdout - #sys.stdout = StringIO() - try: + with contexts.quiet(): cmd.run() - finally: - sys.stdout = old_stdout # let's see if we got our egg link at the right place content = os.listdir(site.USER_SITE) |
