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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17679>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to