[tor-bugs] #8157 [- Select a component]: 'test_skip_nondescriptor_contents' and 'test_non_ascii_descriptor' fails

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Feb 4 19:52:35 UTC 2013


#8157: 'test_skip_nondescriptor_contents' and 'test_non_ascii_descriptor' fails
----------------------------------+-----------------------------------------
 Reporter:  Abhishek Kumar Singh  |          Owner:     
     Type:  defect                |         Status:  new
 Priority:  normal                |      Milestone:     
Component:  - Select a component  |        Version:     
 Keywords:  testing               |         Parent:     
   Points:                        |   Actualpoints:     
----------------------------------+-----------------------------------------
 On running ''./run_tests.py --integ --all''
 'test_skip_nondescriptor_contents' and 'test_non_ascii_descriptor' fails.
 Actually test_skip_nondescriptor_contents fails, while
 test_non_ascii_descriptor shows error which means there is error in
 writing this test.

 [[Image(======================================================================
 ERROR: test_non_ascii_descriptor

 ----
 Traceback:

   File
 "/home/abhishek/checktor/stem/test/integ/descriptor/server_descriptor.py",
 line 197, in test_non_ascii_descriptor
     desc = next(stem.descriptor.parse_file(descriptor_file, "server-
 descriptor 1.0"))
   File "/home/abhishek/checktor/stem/stem/descriptor/__init__.py", line
 186, in parse_file
     for desc in file_parser(descriptor_file):
   File "/home/abhishek/checktor/stem/stem/descriptor/__init__.py", line
 207, in _parse_metrics_file
     for desc in
 stem.descriptor.server_descriptor._parse_file(descriptor_file, is_bridge =
 False, validate = validate):
   File
 "/home/abhishek/checktor/stem/stem/descriptor/server_descriptor.py", line
 134, in _parse_file
     yield RelayDescriptor(descriptor_text, validate, annotations)
   File
 "/home/abhishek/checktor/stem/stem/descriptor/server_descriptor.py", line
 641, in __init__
     self._validate_content()
   File
 "/home/abhishek/checktor/stem/stem/descriptor/server_descriptor.py", line
 692, in _validate_content
     self._verify_descriptor(key_as_bytes)
   File
 "/home/abhishek/checktor/stem/stem/descriptor/server_descriptor.py", line
 758, in _verify_descriptor
     local_digest = self.digest().lower().decode('hex')
   File
 "/home/abhishek/checktor/stem/stem/descriptor/server_descriptor.py", line
 656, in digest
     raw_descriptor = str(self)

 UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in
 position 925: ordinal not in range(128)

 ----
 )]]

 Also please check output file attached with this ticket.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8157>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list