diff options
author | Torsten Marek <shlomme@gmail.com> | 2014-11-16 16:59:11 +0100 |
---|---|---|
committer | Torsten Marek <shlomme@gmail.com> | 2014-11-16 16:59:11 +0100 |
commit | bb9152569e2ad9cb7a469fe082f2a4340636eb08 (patch) | |
tree | 5204800f67a382d8c321e360197cdc3bab85f307 | |
parent | 89d78419a39d1e6444dfbc1df1afa01e3f67d36d (diff) | |
download | astroid-bb9152569e2ad9cb7a469fe082f2a4340636eb08.tar.gz |
Add some logging to debug failure on drone.io
-rw-r--r-- | astroid/tests/unittest_builder.py | 6 | ||||
-rw-r--r-- | tox.ini | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/astroid/tests/unittest_builder.py b/astroid/tests/unittest_builder.py index 82f29f0..4790bec 100644 --- a/astroid/tests/unittest_builder.py +++ b/astroid/tests/unittest_builder.py @@ -443,7 +443,11 @@ class BuilderTest(unittest.TestCase): next(astroid['global_no_effect'].ilookup('CSTE2')) def test_socket_build(self): - import socket + try: + import socket + except ImportError: + print(sys.path) + raise astroid = self.builder.module_build(socket) # XXX just check the first one. Actually 3 objects are inferred (look at # the socket module) but the last one as those attributes dynamically @@ -6,4 +6,4 @@ envlist = py27, py33 deps =
logilab-common
six
-commands = python -Wi -m unittest discover -s {envsitepackagesdir}/astroid/tests -p "unittest*.py"
+commands = python -Wi -m unittest discover -v -s {envsitepackagesdir}/astroid/tests -p "unittest*.py"
|