Message217210
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')))) |
|
Date |
User |
Action |
Args |
2014-04-26 20:04:19 | strogon14 | set | recipients:
+ strogon14, ned.deily, bkabrda |
2014-04-26 20:04:19 | strogon14 | set | messageid: <1398542659.05.0.842162324129.issue17679@psf.upfronthosting.co.za> |
2014-04-26 20:04:18 | strogon14 | link | issue17679 messages |
2014-04-26 20:04:18 | strogon14 | create | |
|