Skip to content

Commit

Permalink
deprecate testing_is_PIN2_used() (#1136)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlapre authored Sep 27, 2024
1 parent 74945f0 commit 79aefd8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sst/core/testingframework/sst_unittest_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
from test_engine_support import OSCommand
from test_engine_support import check_param_type

if not sys.warnoptions:
import os, warnings
warnings.simplefilter("once") # Change the filter in this process
os.environ["PYTHONWARNINGS"] = "once" # Also affect subprocesses

################################################################################

OS_DIST_OSX = "OSX"
Expand Down Expand Up @@ -136,6 +141,10 @@ def testing_is_PIN_Compiled():
return rtn

def testing_is_PIN2_used():
from warnings import warn
warn("testing_is_PIN2_used() is deprecated and will be removed in future versions of SST.",
DeprecationWarning, stacklevel=2)

global pin_exec_path
if testing_is_PIN_Compiled():
if "/pin.sh" in pin_exec_path:
Expand Down

0 comments on commit 79aefd8

Please sign in to comment.