wikimedia / pywikibot-core (master)
Build #2698 passed.
43 minutes and 2 seconds
Fabian Neundorf 2559642 Changeset →
  [FIX] tests: Don't do hostname check if net=False

When using net=False it shouldn't do any hostname checks as the test is
intended to be run without any network activity. This only affects tests which
also have a site defined (e.g. using dry=True) as CheckHostnameMixin wouldn't
check if no hostname or sites are defined.

Also verifies that net is not False when only hostnames (and not sites) are
defined as hostnames is only there for hostname checks.

Change-Id: Ic60d6d24b489bf63284164411ad5cf1d4ba2ece6

Want to know about upcoming build environment updates?

Would you like to stay up-to-date with the upcoming Travis CI build environment updates? We set up a mailing list for you! Sign up here.

Would you like to test your private code?

Travis Pro could be your new best friend!