I ran tox with -r option and it worked! But some tests failed, and at last 
it shows me the following:

self = <tests.test_proxy_connect.ProxyConnectTestCase 
testMethod=test_https_tunnel_without_leak_proxy_authorization_header>, 
first = 0, second = 1, msg = ''

    def assertEqual(self, first, second, msg=''):
        """
            Fail the test if C{first} and C{second} are not equal.
    
            @param msg: A string describing the failure that's included in 
the
                exception.
            """
        if not first == second:
            if msg is None:
                msg = ''
            if len(msg) > 0:
                msg += '\n'
            raise self.failureException(
                '%snot equal:\na = %s\nb = %s\n'
>               % (msg, pformat(first), pformat(second)))
E           FailTest: not equal:
E           a = 0
E           b = 1

/home/lukas/Proyectos/scrapy/.tox/py27/local/lib/python2.7/site-packages/twisted/trial/_synctest.py:447:
 
FailTest
--------------------------------------------------------------------------------------
 
Captured stderr call 
--------------------------------------------------------------------------------------
:0: UserWarning: You do not have a working installation of the 
service_identity module: 'No module named service_identity'.  Please 
install it from <https://pypi.python.org/pypi/service_identity> and make 
sure all of its dependencies are satisfied.  Without the service_identity 
module and a recent enough pyOpenSSL to support it, Twisted can perform 
only rudimentary TLS client hostname verification.  Many valid 
certificate/hostname mappings may be rejected.
============================================================ 4 failed, 1079 
passed, 3 skipped, 13 warnings, 3 error in 209.68 seconds 
============================================================
ERROR: InvocationError: '/home/lukas/Proyectos/scrapy/.tox/py27/bin/py.test 
scrapy tests'
____________________________________________________________________________________________
 
summary 
_____________________________________________________________________________________________
ERROR:   py27: commands failed


It's ok or something went wrong?

El jueves, 5 de febrero de 2015, 17:08:52 (UTC-3), Lukas Zorich escribió:
>
> Hi everyone,
>
> I'm new to scrapy and I want to start contributing to this project, and 
> hopefully apply as a student in the next Gsoc :) I have already downloaded 
> scrapy from github, but I have problems running tests. I created a 
> virtualenv in scrapy root directory, where I installed scrapy using 
>
> pip install --editable .
>
>
> In scrapy docs [1] says that tests are running using tox. I installed tox 
> using
>
> pip install tox
>
>
> But when I ran
>
> tox
>
>
> as the documentation says, it gives me the following error:
>
> (.env)~/Proyectos/scrapy|master⚡ ⇒ tox
> GLOB sdist-make: /home/lukas/Proyectos/scrapy/setup.py
> py27 create: /home/lukas/Proyectos/scrapy/.tox/py27
> py27 installdeps: -rrequirements.txt, boto, Pillow, django, leveldb, -
> rtests/requirements.txt
> ERROR: invocation failed, logfile: /home/lukas/Proyectos/scrapy/.tox/py27/
> log/py27-1.log
> ERROR: actionid=py27
> msg=getenv
> cmdargs=[local('/home/lukas/Proyectos/scrapy/.tox/py27/bin/pip'), 
> 'install', '--pre', '-rrequirements.txt', 'boto', 'Pillow', 'django', 
> 'leveldb', '-rtests/requirements.txt']
> env={'INSTANCE': '', 'PYTHONIOENCODING': 'utf_8', 'QT_QPA_PLATFORMTHEME': 
> 'appmenu-qt5', 'XDG_GREETER_DATA_DIR': '/var/lib/lightdm-data/lukas', 
> 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'AUTOJUMP_DATA_DIR': 
> '/home/lukas/.local/share/autojump', 'LC_CTYPE': 'es_CL.UTF-8', 
> 'XDG_CURRENT_DESKTOP': 'Unity', 'QT_IM_MODULE': 'ibus', 'LOGNAME': 'lukas'
> , 'USER': 'lukas', 'PATH': 
> '/home/lukas/Proyectos/scrapy/.tox/py27/bin:/home/lukas/Proyectos/scrapy/.env/bin:/home/lukas/dev/android/android-studio/bin:/home/lukas/.linuxbrew/bin:/home/lukas/.rbenv/shims:/home/lukas/.rbenv/bin:/usr/local/heroku/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games'
> , 'XDG_VTNR': '7', 'GNOME_KEYRING_CONTROL': 
> '/run/user/1000/keyring-elOPI0', 'PS1': 
> '(.env)%{$fg[cyan]%}%3~%{$reset_color%}%{$fg[red]%}|%{$reset_color%}$(git_prompt_info)%{$fg[cyan]%}\xe2\x87\x92%{$reset_color%}
>  
> ', 'DISPLAY': ':0', 'LANG': 'es_CL.UTF-8', 'INFOPATH': 
> '/home/lukas/.linuxbrew/share/info:', 'TERM': 'xterm', 'SHELL': '/bin/zsh'
> , 'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session0', 
> 'XAUTHORITY': '/home/lukas/.Xauthority', 'LANGUAGE': 'es_CL:es', 
> 'SESSION_MANAGER': 
> 'local/notebook-lukas:@/tmp/.ICE-unix/2080,unix/notebook-lukas:/tmp/.ICE-unix/2080'
> , 'XDG_DATA_DIRS': 
> '/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/', 
> 'LESS_TERMCAP_me': '\x1b[0m', 'MANDATORY_PATH': 
> '/usr/share/gconf/ubuntu.mandatory.path', 'LESS_TERMCAP_mb': '\x1b[01;31m'
> , 'TEXTDOMAIN': 'im-config', 'JOB': 'dbus', 'WINDOWID': '77594635', 
> 'HISTCONTROL': 'erasedups', 'EDITOR': 'vim', 'MANPATH': 
> '/home/lukas/.linuxbrew/share/man:', 'SESSIONTYPE': 'gnome-session', 
> 'IM_CONFIG_PHASE': '1', 'GPG_AGENT_INFO': 
> '/run/user/1000/keyring-elOPI0/gpg:0:1', 'HOME': 
> '/home/lukas/Proyectos/scrapy/.tox/py27/tmp/pseudo-home', 'QT4_IM_MODULE': 
> 'ibus', 'SELINUX_INIT': 'YES', 'COMPIZ_BIN_PATH': '/usr/bin/', 
> 'XDG_RUNTIME_DIR': '/run/user/1000', 'GTK_IM_MODULE': 'ibus', 
> 'RBENV_SHELL': 'zsh', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 
> 'CLUTTER_IM_MODULE': 'xim', 'VIRTUAL_ENV': 
> '/home/lukas/Proyectos/scrapy/.env', 'SSH_AUTH_SOCK': 
> '/run/user/1000/keyring-elOPI0/ssh', 'VTE_VERSION': '3409', 'GDMSESSION': 
> 'ubuntu', 'XMODIFIERS': '@im=ibus', 'TEXTDOMAINDIR': '/usr/share/locale/', 
> 'DESKTOP_SESSION': 'ubuntu', 'GNOME_KEYRING_PID': '1944', 'XDG_SEAT_PATH': 
> '/org/freedesktop/DisplayManager/Seat0', 'LESS_TERMCAP_md': 
> '\x1b[01;38;5;74m', 'XDG_SESSION_ID': 'c2', 'DBUS_SESSION_BUS_ADDRESS': 
> 'unix:abstract=/tmp/dbus-dA2E4ffPcF', '_': '/usr/bin/tox', 'DEFAULTS_PATH'
> : '/usr/share/gconf/ubuntu.default.path', 'SESSION': 'ubuntu', 
> 'LESS_TERMCAP_ue': '\x1b[0m', 'LSCOLORS': 'Gxfxcxdxbxegedabagacad', 
> 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg', 
> 'GTK_MODULES': 'overlay-scrollbar:unity-gtk-module', 'UBUNTU_MENUPROXY': 
> '1', 'XDG_SEAT': 'seat0', 'OLDPWD': '/home/lukas/Proyectos', 'GDM_LANG': 
> 'es_CL', 'NODE_PATH': 
> '/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript', 
> 'LESS_TERMCAP_se': '\x1b[0m', 'SHLVL': '1', 'PWD': 
> '/home/lukas/Proyectos/scrapy', 'LESS_TERMCAP_us': '\x1b[04;38;5;146m', 
> 'COLORTERM': 'gnome-terminal', '
> ...

-- 
You received this message because you are subscribed to the Google Groups 
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to