File: conftest.py

package info (click to toggle)
scikit-learn 1.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,280 kB
  • sloc: python: 184,491; cpp: 5,783; ansic: 854; makefile: 307; sh: 45; javascript: 1
file content (10 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
import pytest

import sklearn


@pytest.fixture
def print_changed_only_false():
    sklearn.set_config(print_changed_only=False)
    yield
    sklearn.set_config(print_changed_only=True)  # reset to default