File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/sst/core/testingframework Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 3232from test_engine_support import OSCommand
3333from test_engine_support import check_param_type
3434
35+ if not sys .warnoptions :
36+ import os , warnings
37+ warnings .simplefilter ("once" ) # Change the filter in this process
38+ os .environ ["PYTHONWARNINGS" ] = "once" # Also affect subprocesses
39+
3540################################################################################
3641
3742OS_DIST_OSX = "OSX"
@@ -136,6 +141,10 @@ def testing_is_PIN_Compiled():
136141 return rtn
137142
138143def testing_is_PIN2_used ():
144+ from warnings import warn
145+ warn ("testing_is_PIN2_used() is deprecated and will be removed in future versions of SST." ,
146+ DeprecationWarning , stacklevel = 2 )
147+
139148 global pin_exec_path
140149 if testing_is_PIN_Compiled ():
141150 if "/pin.sh" in pin_exec_path :
You can’t perform that action at this time.
0 commit comments