Skip to content

Commit 2d3ade6

Browse files
committed
Add a test of loading sysconfig data.
1 parent 018339b commit 2d3ade6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/test_common.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@ def test_stdlib_modules():
148148
), f"Missing stdlib modules: {', '.join(str(m) for m in missing)}"
149149

150150

151+
def test_sysconfig_data():
152+
"sysconfigdata can be obtained for the platform"
153+
import sysconfig
154+
155+
# Assert that the config exists and isn't empty. The contents is platform dependent,
156+
# but we just need to know the module was found.
157+
config_vars = sysconfig.get_config_vars()
158+
assert len(config_vars.keys()) > 20
159+
160+
151161
def test_bzip2():
152162
"BZip2 compression with the bz2 module works"
153163
import bz2

0 commit comments

Comments
 (0)