summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-11-16 16:59:11 +0100
committerTorsten Marek <shlomme@gmail.com>2014-11-16 16:59:11 +0100
commitbb9152569e2ad9cb7a469fe082f2a4340636eb08 (patch)
tree5204800f67a382d8c321e360197cdc3bab85f307
parent89d78419a39d1e6444dfbc1df1afa01e3f67d36d (diff)
downloadastroid-bb9152569e2ad9cb7a469fe082f2a4340636eb08.tar.gz
Add some logging to debug failure on drone.io
-rw-r--r--astroid/tests/unittest_builder.py6
-rw-r--r--tox.ini2
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
diff --git a/tox.ini b/tox.ini
index 58d6938..622251c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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"