# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
git_repo_path = abspath(join(dirname(dirname(__file__)), "src"))
sys.path.insert(1, git_repo_path)

@@ -111,16 +111,32 @@
 ort sys%0A
+import warnings%0A
 from os.
@@ -431,8 +431,245 @@
 o_path)%0A
+%0A# silence FutureWarning warnings in tests since often we can't act on them until%0A# they become normal warnings - i.e. the tests still need to test the current functionality%0Awarnings.simplefilter(action=%22ignore%22, category=FutureWarning)%0A

disable FutureWarning in examples tests (#7842)