log_file.txt

download

20 /tmp/tmpF5va36/src/345579/.tox/py27-cubicweb/bin/python -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master actionid=py27-cubicweb
msg=runtests
cmdargs=['/tmp/tmpF5va36/src/345579/.tox/py27-cubicweb/bin/python', '-m', 'pip', 'install', '--upgrade', '--no-deps', '--quiet', 'git+git://github.com/logilab/yapps@master']
env={'LANG': 'en_US.UTF-8', 'APYCOT_ROOT': '/tmp/tmpF5va36', 'LANGUAGE': 'en_US:en', 'PYTHONPATH': '/usr/share/narval:/usr/share/narval', 'HGRCPATH': '/dev/null', 'LINES': '24', 'VIRTUAL_ENV': '/tmp/tmpF5va36/src/345579/.tox/py27-cubicweb', 'PYTHONHASHSEED': '1319021191', 'PATH': '/tmp/tmpF5va36/src/345579/.tox/py27-cubicweb/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/9.4/bin', 'HOME': '/var/lib/narval', 'LC_ALL': 'fr_FR.UTF-8', 'COLUMNS': '80'}
Cannot find command 'git'
Storing debug log for failure in /var/lib/narval/.pip/pip.log
<br/>20 /tmp/tmpF5va36/src/345579/.tox/py27-cubicweb/bin/python -m pytest /tmp/tmpF5va36/src/345579/cubicweb/test actionid=py27-cubicweb
msg=runtests
cmdargs=[&#39;/tmp/tmpF5va36/src/345579/.tox/py27-cubicweb/bin/python&#39;, &#39;-m&#39;, &#39;pytest&#39;, &#39;/tmp/tmpF5va36/src/345579/cubicweb/test&#39;]
env={&#39;LANG&#39;: &#39;en_US.UTF-8&#39;, &#39;APYCOT_ROOT&#39;: &#39;/tmp/tmpF5va36&#39;, &#39;LANGUAGE&#39;: &#39;en_US:en&#39;, &#39;PYTHONPATH&#39;: &#39;/usr/share/narval:/usr/share/narval&#39;, &#39;HGRCPATH&#39;: &#39;/dev/null&#39;, &#39;LINES&#39;: &#39;24&#39;, &#39;VIRTUAL_ENV&#39;: &#39;/tmp/tmpF5va36/src/345579/.tox/py27-cubicweb&#39;, &#39;PYTHONHASHSEED&#39;: &#39;1319021191&#39;, &#39;PATH&#39;: &#39;/tmp/tmpF5va36/src/345579/.tox/py27-cubicweb/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/9.4/bin&#39;, &#39;HOME&#39;: &#39;/var/lib/narval&#39;, &#39;LC_ALL&#39;: &#39;fr_FR.UTF-8&#39;, &#39;COLUMNS&#39;: &#39;80&#39;}
============================= test session starts ==============================
platform linux2 -- Python 2.7.9, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpF5va36/src/345579, inifile: tox.ini
collected 300 items

cubicweb/test/unittest_binary.py .....
cubicweb/test/unittest_cwconfig.py ................
cubicweb/test/unittest_cwctl.py ..
cubicweb/test/unittest_entity.py ........................................................
cubicweb/test/unittest_mail.py .......
cubicweb/test/unittest_migration.py ....
cubicweb/test/unittest_predicates.py ............................
cubicweb/test/unittest_repoapi.py ....
cubicweb/test/unittest_req.py ........
cubicweb/test/unittest_rqlrewrite.py ....................................ss....
cubicweb/test/unittest_rset.py .........................................
cubicweb/test/unittest_rtags.py ...
cubicweb/test/unittest_schema.py .F..F.....................
cubicweb/test/unittest_spa2rql.py sssssssssssss
cubicweb/test/unittest_toolsutils.py ....
cubicweb/test/unittest_uilib.py .................
cubicweb/test/unittest_utils.py ....................
cubicweb/test/unittest_vregistry.py ....

=================================== FAILURES ===================================
_____________________ CubicWebSchemaTC.test_erqlexpression _____________________

self = &lt;unittest_schema.CubicWebSchemaTC testMethod=test_erqlexpression&gt;

def test_erqlexpression(self):
&gt; self.assertRaises(RQLSyntaxError, ERQLExpression, &#39;1&#39;)

cubicweb/test/unittest_schema.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/schema.py:408: in __init__
RQLExpression.__init__(self, expression, mainvars or &#39;X&#39;, eid)
cubicweb/schema.py:231: in __init__
self.expression = normalize_expression(expression)
cubicweb/schema.py:152: in normalize_expression
union = parse(u&#39;Any 1 WHERE %s&#39; % rqlstring).as_string()
.tox/py27-cubicweb/local/lib/python2.7/site-packages/rql/__init__.py:236: in parse
print_error(ex, parser._scanner)
.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:420: in print_error
scanner.print_line_with_pointer(pos)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = &lt;rql.parser.HerculeScanner object at 0x7f6c976e53d0&gt;
pos = (&#39;&lt;f.4793&gt;&#39;, 1, 12), length = 0
out = &lt;_pytest.capture.EncodedFile object at 0x7f6ca41c44d0&gt;

def print_line_with_pointer(self, pos, length=0, out=sys.stderr):
&quot;&quot;&quot;Print the line of &#39;text&#39; that includes position &#39;p&#39;,
along with a second line with a single caret (^) at position p&quot;&quot;&quot;

file,line,p = pos
if file != self.filename:
if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out)
print &gt;&gt;out, &quot;(%s: not in input buffer)&quot; % file
return

text = self.input
p += length-1 # starts at pos 1

origline=line
line -= self.del_line
spos=0
if line &gt; 0:
while 1:
line = line - 1
try:
cr = text.index(&quot;\n&quot;,spos)
except ValueError:
if line:
text = &quot;&quot;
break
if line == 0:
text = text[spos:cr]
break
spos = cr+1
else:
print &gt;&gt;out, &quot;(%s:%d not in input buffer)&quot; % (file,origline)
return

# Now try printing part of the line
text = text[max(p-80, 0):p+80]
p = p - max(p-80, 0)

# Strip to the left
i = text[:p].rfind(&#39;\n&#39;)
j = text[:p].rfind(&#39;\r&#39;)
if i &lt; 0 or (0 &lt;= j &lt; i): i = j
if 0 &lt;= i &lt; p:
p = p - i - 1
text = text[i+1:]

# Strip to the right
i = text.find(&#39;\n&#39;, p)
j = text.find(&#39;\r&#39;, p)
if i &lt; 0 or (0 &lt;= j &lt; i): i = j
if i &gt;= 0:
text = text[:i]

# Now shorten the text
while len(text) &gt; 70 and p &gt; 60:
# Cut off 10 chars
text = &quot;...&quot; + text[10:]
p = p - 7

# Now print the string, along with an indicator
&gt; print &gt;&gt;out, &#39;&gt; &#39;,text
E TypeError: unsupported operand type(s) for &gt;&gt;: &#39;builtin_function_or_method&#39; and &#39;EncodedFile&#39;

.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:230: TypeError
_____________________ CubicWebSchemaTC.test_rrqlexpression _____________________

self = &lt;unittest_schema.CubicWebSchemaTC testMethod=test_rrqlexpression&gt;

def test_rrqlexpression(self):
self.assertRaises(Exception, RRQLExpression, &#39;1&#39;)
&gt; self.assertRaises(RQLSyntaxError, RRQLExpression, &#39;O X Y&#39;)

cubicweb/test/unittest_schema.py:145:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/schema.py:482: in __init__
RQLExpression.__init__(self, expression, mainvars, eid)
cubicweb/schema.py:231: in __init__
self.expression = normalize_expression(expression)
cubicweb/schema.py:152: in normalize_expression
union = parse(u&#39;Any 1 WHERE %s&#39; % rqlstring).as_string()
.tox/py27-cubicweb/local/lib/python2.7/site-packages/rql/__init__.py:236: in parse
print_error(ex, parser._scanner)
.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:420: in print_error
scanner.print_line_with_pointer(pos)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = &lt;rql.parser.HerculeScanner object at 0x7f6c97c8c910&gt;
pos = (&#39;&lt;f.4795&gt;&#39;, 1, 14), length = 0
out = &lt;_pytest.capture.EncodedFile object at 0x7f6ca41c44d0&gt;

def print_line_with_pointer(self, pos, length=0, out=sys.stderr):
&quot;&quot;&quot;Print the line of &#39;text&#39; that includes position &#39;p&#39;,
along with a second line with a single caret (^) at position p&quot;&quot;&quot;

file,line,p = pos
if file != self.filename:
if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out)
print &gt;&gt;out, &quot;(%s: not in input buffer)&quot; % file
return

text = self.input
p += length-1 # starts at pos 1

origline=line
line -= self.del_line
spos=0
if line &gt; 0:
while 1:
line = line - 1
try:
cr = text.index(&quot;\n&quot;,spos)
except ValueError:
if line:
text = &quot;&quot;
break
if line == 0:
text = text[spos:cr]
break
spos = cr+1
else:
print &gt;&gt;out, &quot;(%s:%d not in input buffer)&quot; % (file,origline)
return

# Now try printing part of the line
text = text[max(p-80, 0):p+80]
p = p - max(p-80, 0)

# Strip to the left
i = text[:p].rfind(&#39;\n&#39;)
j = text[:p].rfind(&#39;\r&#39;)
if i &lt; 0 or (0 &lt;= j &lt; i): i = j
if 0 &lt;= i &lt; p:
p = p - i - 1
text = text[i+1:]

# Strip to the right
i = text.find(&#39;\n&#39;, p)
j = text.find(&#39;\r&#39;, p)
if i &lt; 0 or (0 &lt;= j &lt; i): i = j
if i &gt;= 0:
text = text[:i]

# Now shorten the text
while len(text) &gt; 70 and p &gt; 60:
# Cut off 10 chars
text = &quot;...&quot; + text[10:]
p = p - 7

# Now print the string, along with an indicator
&gt; print &gt;&gt;out, &#39;&gt; &#39;,text
E TypeError: unsupported operand type(s) for &gt;&gt;: &#39;builtin_function_or_method&#39; and &#39;EncodedFile&#39;

.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:230: TypeError
===== 2 failed, 283 passed, 15 skipped, 5 pytest-warnings in 42.82 seconds =====
<br/>

log from execution