Fix build flags in test.py
Merge branch 'travis-ci.macosx.branch' of https://github.com/ruslo/sugar into travis-ci.macosx.branch