Skip to content

Commit

Permalink
Set Python DeprecationWarnings to default. Refs #6639
Browse files Browse the repository at this point in the history
In 2.7 they are ignored by default, which is not that useful.
  • Loading branch information
martyngigg committed Mar 11, 2013
1 parent 601607a commit 4a2dd31
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Code/Mantid/Framework/PythonInterface/mantid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ def apiVersion():
except ImportError:
__gui__ = False

###############################################################################
# Set deprecation warnings back to default (they are ignored in 2.7)
###############################################################################
import warnings as _warnings
_warnings.filterwarnings("default",category=DeprecationWarning)

###############################################################################
# Try to be smarter when finding Mantid framework libraries
###############################################################################
Expand Down

0 comments on commit 4a2dd31

Please sign in to comment.