'test_skip_nondescriptor_contents' and 'test_non_ascii_descriptor' fails
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.
Trac:
Username: Abhishek Kumar Singh