From bb9152569e2ad9cb7a469fe082f2a4340636eb08 Mon Sep 17 00:00:00 2001 From: Torsten Marek Date: Sun, 16 Nov 2014 16:59:11 +0100 Subject: Add some logging to debug failure on drone.io --- astroid/tests/unittest_builder.py | 6 +++++- 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 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" -- cgit v1.2.1