def SanitizeFlags_ArchRemoved_test(): expected = ['-foo', '-bar'] to_remove = ['-arch', 'arch_of_evil'] eq_(expected, list(flags._SanitizeFlags(expected + to_remove))) eq_(expected, list(flags._SanitizeFlags(to_remove + expected))) eq_(expected, list(flags._SanitizeFlags(expected[:1] + to_remove + expected[-1:])))
def SanitizeFlags_ArchRemoved_test(): expected = [ '-foo', '-bar' ] to_remove = [ '-arch', 'arch_of_evil' ] eq_( expected, list( flags._SanitizeFlags( expected + to_remove ) ) ) eq_( expected, list( flags._SanitizeFlags( to_remove + expected ) ) ) eq_( expected, list( flags._SanitizeFlags( expected[ :1 ] + to_remove + expected[ -1: ] ) ) )
def SanitizeFlags_Passthrough_test(): eq_( [ '-foo', '-bar' ], list( flags._SanitizeFlags( [ '-foo', '-bar' ] ) ) )
def SanitizeFlags_Passthrough_test(): eq_(['-foo', '-bar'], list(flags._SanitizeFlags(['-foo', '-bar'])))