Skip to content

Commit 8a4b4d9

Browse files
committed
deprecate testing_is_PIN2_used()
1 parent d71da88 commit 8a4b4d9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/sst/core/testingframework/sst_unittest_support.py

+9
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
from test_engine_support import OSCommand
3333
from 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

3742
OS_DIST_OSX = "OSX"
@@ -136,6 +141,10 @@ def testing_is_PIN_Compiled():
136141
return rtn
137142

138143
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+
139148
global pin_exec_path
140149
if testing_is_PIN_Compiled():
141150
if "/pin.sh" in pin_exec_path:

0 commit comments

Comments
 (0)