File: conftest.py

package info (click to toggle)
dask.distributed 1.25.0%2Bds.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,696 kB
  • sloc: python: 39,523; makefile: 178; sh: 80
file content (22 lines) | stat: -rw-r--r-- 593 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# https://pytest.org/latest/example/simple.html#control-skipping-of-tests-according-to-command-line-option
import os
import pytest


# Uncomment to enable more logging and checks
# (https://docs.python.org/3/library/asyncio-dev.html)
# Note this makes things slower and might consume much memory.
#os.environ["PYTHONASYNCIODEBUG"] = "1"

try:
    import faulthandler
except ImportError:
    pass
else:
    faulthandler.enable()


def pytest_addoption(parser):
    parser.addoption("--runslow", action="store_true", help="run slow tests")

pytest_plugins = ['distributed.pytest_resourceleaks']