Skip to content

Commit

Permalink
chore: config (#664)
Browse files Browse the repository at this point in the history
* chore: add a couple of pytest options

Signed-off-by: Henry Schreiner <[email protected]>

* chore: tracemalloc for nox

Signed-off-by: Henry Schreiner <[email protected]>

* tests: remove passing xfail

Signed-off-by: Henry Schreiner <[email protected]>

---------

Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Nov 1, 2023
1 parent 020ccb9 commit e03bc94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def tests(session):
Run the unit and regular tests.
"""
session.install("-e", ".[dev]")
session.run("pytest", *session.posargs)
session.run("pytest", *session.posargs, env={"PYTHONTRACEMALLOC": "5"})


@nox.session(reuse_venv=True)
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,15 @@ ignore_missing_imports = true


[tool.pytest.ini_options]
testpaths = ["tests"]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--cov-config=setup.cfg", "--strict-markers", "--strict-config"]
norecursedirs = ["examples", "experiments"]
filterwarnings = [
"always"
]
log_cli_level = "info"
xfail_strict = true
required_plugins = ["pytest-timeout", "pytest-mock"]
timeout = 300
optional_tests = """
Expand Down
4 changes: 0 additions & 4 deletions tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,10 +1052,6 @@ class TestLocalEncoding:
except NameError:
richstr = chr(40960)

@pytest.mark.xfail(
IS_WIN32,
reason="Unicode output on Windows does not work (Python 3.6+ was supposed to work)",
)
def test_inout_rich(self):
from plumbum.cmd import echo

Expand Down

0 comments on commit e03bc94

Please sign in to comment.