File: conftest.py

package info (click to toggle)
aiohttp-cors 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 324 kB
  • sloc: python: 1,735; makefile: 11
file content (15 lines) | stat: -rw-r--r-- 508 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys

# TODO: add option or in other way allow developer to enable debug logging.
if False:
    import logging
    logging.basicConfig(level=logging.DEBUG)


def pytest_cmdline_preparse(args):
    if sys.version_info[:2] == (3, 5):
        # Disable pylint on Python 3.5, since it's broken:
        # <https://bitbucket.org/logilab/astroid/issues/187/call-object-has-no-attribute-starargs>
        args[:] = (
            ["-p", "no:pylint"] +
            [arg for arg in args if "pylint" not in arg])