File: __init__.py

package info (click to toggle)
pypy3 7.3.20%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 212,628 kB
  • sloc: python: 2,101,020; ansic: 540,684; sh: 21,462; asm: 14,419; cpp: 4,451; makefile: 4,209; objc: 761; xml: 530; exp: 499; javascript: 314; pascal: 244; lisp: 45; csh: 12; awk: 4
file content (31 lines) | stat: -rw-r--r-- 1,069 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""Test suite for distutils.

This test suite consists of a collection of test modules in the
distutils.tests package.

Tests for the command classes in the distutils.command package are
included in distutils.tests as well, instead of using a separate
distutils.command.tests package, since command identification is done
by import rather than matching pre-defined names.

"""

import os
import unittest
from test.support.warnings_helper import save_restore_warnings_filters
from test.support import warnings_helper
from test.support import load_package_tests


def load_tests(*args):
    # bpo-40055: Save/restore warnings filters to leave them unchanged.
    # Importing tests imports docutils which imports pkg_resources
    # which adds a warnings filter.
    with (save_restore_warnings_filters(),
          warnings_helper.check_warnings(
            ("The distutils.sysconfig module is deprecated", DeprecationWarning),
            quiet=True)):
        return load_package_tests(os.path.dirname(__file__), *args)

if __name__ == "__main__":
    unittest.main()