Skip to content

Commit 1f154ce

Browse files
committed
skip Python runtimes which are not in scope for unit testing
1 parent 9a60ba7 commit 1f154ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/pandas-gbq/noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,12 @@ def default(session):
230230
)
231231

232232

233-
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS)
233+
@nox.session(python=ALL_PYTHON)
234234
@_calculate_duration
235235
def unit(session):
236236
"""Run the unit test suite."""
237+
if session.python not in UNIT_TEST_PYTHON_VERSIONS:
238+
session.skip(f"Testing of Python runtime {session.python} skipped because it's not in {UNIT_TEST_PYTHON_VERSIONS}")
237239
default(session)
238240

239241

0 commit comments

Comments
 (0)