File tree 1 file changed +9
-0
lines changed
src/sst/core/testingframework
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 32
32
from test_engine_support import OSCommand
33
33
from test_engine_support import check_param_type
34
34
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
+
35
40
################################################################################
36
41
37
42
OS_DIST_OSX = "OSX"
@@ -136,6 +141,10 @@ def testing_is_PIN_Compiled():
136
141
return rtn
137
142
138
143
def 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
+
139
148
global pin_exec_path
140
149
if testing_is_PIN_Compiled ():
141
150
if "/pin.sh" in pin_exec_path :
You can’t perform that action at this time.
0 commit comments