Skip to content

Commit

Permalink
Fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Jun 17, 2024
1 parent 84beb66 commit a55ea2c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
6 changes: 3 additions & 3 deletions params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ paths:
package: src/boilerdaq
stages:
calibrate: src/boilerdaq/stages/calibrate.py
test: src/boilerdaq/stages/test.py
run: src/boilerdaq/stages/run.py
controlled_surface_control: src/boilerdaq/stages/controlled/surface_control.py
test: src/boilerdaq/stages/test.py
controlled_benchmark: src/boilerdaq/stages/controlled/benchmark.py
controlled_set_voltage: src/boilerdaq/stages/controlled/set_voltage.py
controlled_control: src/boilerdaq/stages/controlled/control.py
controlled_set_voltage: src/boilerdaq/stages/controlled/set_voltage.py
controlled_surface_control: src/boilerdaq/stages/controlled/surface_control.py
config: data/config
plot_config: data/plotting
mpl_base: data/plotting/base.mplstyle
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ exclude = [
"**/node_modules",
"**/__pycache__",
"**/.*",
"**/.venv",
"**/.vscode/extensions",
"**/AppData",
"bin",
"submodules/template",
"submodules/typings",
Expand Down
17 changes: 10 additions & 7 deletions tests/boilerdaq_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,16 @@ def _disable_power_supply():
@pytest.fixture(autouse=True)
def _filter_certain_warnings():
"""Filter certain warnings."""
filter_certain_warnings([
WarningFilter(category=ResourceWarning, message=msg)
for msg in (
r"unclosed event loop <.+EventLoop running=False closed=False debug=False>",
r"unclosed <socket\.socket fd=\d+, family=\d+, type=\d+, proto=\d+.*>",
)
])
filter_certain_warnings(
package="boilerdaq",
other_warnings=[
WarningFilter(category=ResourceWarning, message=msg)
for msg in (
r"unclosed event loop <.+EventLoop running=False closed=False debug=False>",
r"unclosed <socket\.socket fd=\d+, family=\d+, type=\d+, proto=\d+.*>",
)
],
)


@pytest.fixture(params=STAGES)
Expand Down

0 comments on commit a55ea2c

Please sign in to comment.