+
+ # This check is reliably unreliable on Travis, presumably because of CPU
+ # resources being quite restricted by the build environment. The workaround
+ # is to apply an arbitrary factor that should be enough to make it work nicely.
+ if os.environ.get('TRAVIS') == 'true':
+ allowed_part *= 1.2
+