[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #28571 [Core Tor/Stem]: stem's doctests fail
#28571: stem's doctests fail
-------------------------------+--------------------
Reporter: teor | Owner: atagar
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Stem | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
-------------------------------+--------------------
{{{
doctest...
**********************************************************************
File "/home/travis/build/torproject/tor/stem/stem/descriptor/remote.py",
line 690, in remote.py
Failed example:
my_router_status_entry = filter(lambda desc: desc.nickname ==
'caersidi', consensus)[0]
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest remote.py[2]>", line 1, in <module>
my_router_status_entry = filter(lambda desc: desc.nickname ==
'caersidi', consensus)[0]
TypeError: 'filter' object is not subscriptable
**********************************************************************
File "/home/travis/build/torproject/tor/stem/stem/descriptor/remote.py",
line 691, in remote.py
Failed example:
print(my_router_status_entry.microdescriptor_digest)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest remote.py[3]>", line 1, in <module>
print(my_router_status_entry.microdescriptor_digest)
NameError: name 'my_router_status_entry' is not defined
**********************************************************************
File "/home/travis/build/torproject/tor/stem/stem/descriptor/remote.py",
line 694, in remote.py
Failed example:
my_microdescriptor =
stem.descriptor.remote.get_microdescriptors([my_router_status_entry.microdescriptor_digest]).run()[0]
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest remote.py[4]>", line 1, in <module>
my_microdescriptor =
stem.descriptor.remote.get_microdescriptors([my_router_status_entry.microdescriptor_digest]).run()[0]
NameError: name 'my_router_status_entry' is not defined
**********************************************************************
File "/home/travis/build/torproject/tor/stem/stem/descriptor/remote.py",
line 695, in remote.py
Failed example:
print(my_microdescriptor)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest remote.py[5]>", line 1, in <module>
print(my_microdescriptor)
NameError: name 'my_microdescriptor' is not defined
**********************************************************************
1 items had failures:
4 of 6 in remote.py
***Test Failed*** 4 failures.
failed (0.10s)
test_examples [FAILURE]
}}}
https://travis-ci.org/torproject/tor/jobs/458280464#L3517
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28571>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs