Skip to content

Commit 2d7c2ce

Browse files
committed
tests: skip conda in min tests
Signed-off-by: Henry Schreiner <henryfs@princeton.edu> Update pyproject.toml Update noxfile.py Apply suggestion from @henryiii
1 parent 5a36fc5 commit 2d7c2ce

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

noxfile.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def tests(session: nox.Session) -> None:
5151
session.create_tmp() # Fixes permission errors on Windows
5252
session.install(*PYPROJECT["dependency-groups"]["test"], "uv")
5353
session.install("-e.[tox-to-nox,pbs]")
54-
extra_env = {"PYTHONWARNDEFAULTENCODING": "1"}
5554
session.run("coverage", "erase", env=env)
5655
session.run(
5756
"coverage",
@@ -67,11 +66,6 @@ def tests(session: nox.Session) -> None:
6766
session.run("coverage", "combine", env=env)
6867
session.run("coverage", "report", env=env)
6968

70-
# if sys.platform.startswith("win"):
71-
# with contextlib.closing(sqlite3.connect(coverage_file)) as con, con:
72-
# con.execute("UPDATE file SET path = REPLACE(path, '\\', '/')")
73-
# con.execute("DELETE FROM file WHERE SUBSTR(path, 2, 1) == ':'")
74-
7569

7670
@nox.session(venv_backend="uv", default=False)
7771
def minimums(session: nox.Session) -> None:
@@ -80,7 +74,7 @@ def minimums(session: nox.Session) -> None:
8074

8175
session.install("-e.", "--group=test", "--resolution=lowest-direct")
8276
session.run("uv", "pip", "list")
83-
session.run("pytest", *session.posargs)
77+
session.run("pytest", "-m", "not conda", *session.posargs)
8478

8579

8680
def xonda_tests(session: nox.Session, xonda: str) -> None:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ run.core = "sysmon"
134134
run.branch = true
135135
run.patch = [ "subprocess" ]
136136
run.relative_files = true
137-
run.source_dirs = [ "nox" ]
137+
run.source_pkgs = [ "nox" ]
138138
run.disable_warnings = [
139139
"no-sysmon",
140140
]

0 commit comments

Comments
 (0)