py.test trying to import wrong module on Travis but not locally
<p>I have <a href="https://travis-ci.org/w3c/wpt-tools/jobs/148078878" rel="nofollow">a Travis CI build that is failing</a>; <code>py.test</code> seems to be trying to import the wrong module, though I cannot reproduce this locally. I expect it to import <code>tools.lint.tests.test_lint</code>, not <code>lint.tests.test_lint</code>, as you can see in the traceback, given that build has <code>--full-trace</code>! This leads to the error beneath it when it tries to do a relative import from the tools package.</p>

<p>The short trackback is:</p>

<pre><code>___________________ ERROR collecting lint/tests/test_lint.py ___________________
.tox/py27/lib/python2.7/site-packages/py/_path/local.py:650: in pyimport
    __import__(modname)
lint/__init__.py:1: in &lt;module&gt;
    from . import lint
lint/lint.py:15: in &lt;module&gt;
    from .. import localpaths
E   ValueError: Attempted relative import beyond toplevel package
</code></pre>

<p>Given the name of the top level package is just the directory that the repo is in, I wouldn't be surprised to see that differ—but I'd still expect to see it there!</p>