Skip to content

Commit

Permalink
Treat deprecation warnings as exceptions. Removed extraneous print st…
Browse files Browse the repository at this point in the history
…atement.
  • Loading branch information
pllim committed Feb 15, 2017
1 parent 8831bdb commit 09abd9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 0 additions & 1 deletion pysynphot/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ def _get_RedLaws():
files = [os.path.join(extdir, f) for f in files]
else:
files = glob.glob(globstr)
print(files)

if not files:
warnings.warn('Extinction files not found in %s' % (extdir, ))
Expand Down
11 changes: 10 additions & 1 deletion pysynphot/test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import pytest
import pytest # noqa

from astropy.tests.helper import (enable_deprecations_as_exceptions,
treat_deprecations_as_exceptions)

enable_deprecations_as_exceptions()


def pytest_configure(config):
treat_deprecations_as_exceptions()


def pytest_addoption(parser):
Expand Down

0 comments on commit 09abd9e

Please sign in to comment.