Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2c586fc

Browse files
committedApr 24, 2025·
Changes pytest flag to ignore FutureWarning re: 3.7 and 3.8
1 parent 31deed7 commit 2c586fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def default(session, tests_path):
187187
session.run(
188188
"py.test",
189189
"--quiet",
190-
"-W default::PendingDeprecationWarning",
190+
"-W default::FutureWarning",
191191
f"--junitxml={os.path.split(tests_path)[-1]}_{session.python}_sponge_log.xml",
192192
"--cov=db_dtypes",
193193
"--cov=tests/unit",
@@ -265,7 +265,7 @@ def prerelease(session, tests_path):
265265
session.run(
266266
"py.test",
267267
"--quiet",
268-
"-W default::PendingDeprecationWarning",
268+
"-W default::FutureWarning",
269269
f"--junitxml={os.path.split(tests_path)[-1]}_prerelease_{session.python}_sponge_log.xml",
270270
"--cov=db_dtypes",
271271
"--cov=tests/unit",

‎tests/unit/test__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import sys
1516
from unittest import mock
1617

1718
import pytest
@@ -22,7 +23,6 @@
2223
MOCK_EXTRACT_VERSION = f"{HELPER_MODULE_PATH}.extract_runtime_version"
2324
MOCK_WARN = "warnings.warn" # Target the standard warnings module
2425

25-
2626
@pytest.mark.parametrize(
2727
"mock_version_tuple, version_str",
2828
[

0 commit comments

Comments
 (0)
Please sign in to comment.