Debian Codegraph @

extra_tests/hpy_tests/test_dist_info.py

raw symbols SCIP
1 """
2 Check that our bundled version of hpy is correctly detected by setuptools.
3 """
4
5 def test_get_distribution():
6 import pkg_resources
7 dist = pkg_resources.get_distribution('hpy')
8 assert dist.egg_name().startswith('hpy')
9
10 def test_entry_point():
11 import pkg_resources
12 entry_points = pkg_resources.iter_entry_points('distutils.setup_keywords',
13 'hpy_ext_modules')
14 entry_points = list(entry_points)
15 assert len(entry_points) == 1