Skip to content

Commit

Permalink
warnings?
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Sep 8, 2024
1 parent 74cfce6 commit 0af0218
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ostap/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
import sys, os
if sys.warnoptions or os.environ.get ( 'OSTAP_CMAKE_TEST', False ) :
import warnings
with warnings.catch_warnings():
warnings.simplefilter ( "always" )
with warnings.catch_warnings() :
warnings.simplefilter ( "ignore" , category = DeprecationWarning )
warnings.simplefilter ( "ignore" , category = UserWarning )
import cppyy

# =============================================================================
## The END
# =============================================================================
3 changes: 2 additions & 1 deletion ostap/core/ostap_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
if sys.warnoptions or os.environ.get ( 'OSTAP_CMAKE_TEST', False ) :
import warnings
with warnings.catch_warnings():
warnings.simplefilter ( "always" )
warnings.simplefilter ( "ignore" , category = DeprecationWarning )
warnings.simplefilter ( "ignore" , category = UserWarning )
import cppyy
else :
import cppyy
Expand Down

0 comments on commit 0af0218

Please sign in to comment.