File: conftest.py

package info (click to toggle)
python-openapi-core 0.19.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,008 kB
  • sloc: python: 18,868; makefile: 47
file content (11 lines) | stat: -rw-r--r-- 296 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import unittest

import pytest


@pytest.fixture(autouse=True)
def disable_builtin_socket(scope="session"):
    # ResourceWarning from pytest with responses 0.24.0 workaround
    # See https://github.com/getsentry/responses/issues/689
    with unittest.mock.patch("socket.socket"):
        yield