aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/setuptools/tests/test_depends.py
blob: 1714c041f7a23e1ecbfc3245bf964f75c13734ca (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys

from setuptools import depends


class TestGetModuleConstant:
    def test_basic(self):
        """
        Invoke get_module_constant on a module in
        the test package.
        """
        mod_name = 'setuptools.tests.mod_with_constant'
        val = depends.get_module_constant(mod_name, 'value')
        assert val == 'three, sir!'
        assert 'setuptools.tests.mod_with_constant' not in sys.modules