[issue17679] sysconfig generation uses some env variables multiple times

Christopher Arndt report at bugs.python.org
Sat Apr 26 22:04:19 CEST 2014


Christopher Arndt added the comment:

Another solution may be to make the test more relaxed and regard the value returned by sysconfig.get_config_var() as a _set_ of shell tokens, whose elements may occur more than once, e.g.


    def test_sysconfig_module(self):
        import sysconfig as global_sysconfig
        from shlex import split
        self.assertEqual(
            set(split(global_sysconfig.get_config_var('CFLAGS'))),
            set(split(sysconfig.get_config_var('CFLAGS'))))
        self.assertEqual(
            set(split(global_sysconfig.get_config_var('LDFLAGS'))),
            set(split(sysconfig.get_config_var('LDFLAGS'))))

----------
nosy: +strogon14

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17679>
_______________________________________


More information about the Python-bugs-list mailing list