Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding failures on Python 2 #110

Open
jayvdb opened this issue Apr 20, 2020 · 0 comments
Open

Encoding failures on Python 2 #110

jayvdb opened this issue Apr 20, 2020 · 0 comments

Comments

@jayvdb
Copy link
Owner

jayvdb commented Apr 20, 2020

This seems to mostly occur with URLs

______________ TestSetuppyMismatch.test_package__<'pydocumentdb'> ______________
args = (<tests.test_failures.TestSetuppyMismatch testMethod=test_package__<'pydocumentdb'>>, 'pydocumentdb')
kwargs = {}
    @functools.wraps(base_func)
    def generated_func(*args, **kwargs):
        args += p_args
        kwargs.update(**p_kwargs)
        if 'context_targets' in accepted_generic_kwargs:
            kwargs.setdefault('context_targets', [])
        if 'label' in accepted_generic_kwargs:
            kwargs.setdefault('label', label)
>       return base_func(*args, **kwargs)
.tox/py27/lib/python2.7/site-packages/unittest_expander.py:1951: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_failures.py:124: in test_package
    url = self._get_scm(name)
tests/utils.py:98: in _get_scm
    url = self.converter.get_vcs(name)
pypidb/_pypi.py:571: in get_vcs
    url = self._get_vcs_links(rule, name, data, inputs)
pypidb/_pypi.py:311: in _get_vcs_links
    logger.debug("queue {}".format(queue))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <[UnicodeEncodeError("'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)") raised in repr()] SafeRepr object at 0x7f2a63bd7d70>
    def __repr__(self):
>       return "{}({!r})".format(self.__class__.__name__, str(self))
E       UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
pypidb/_types.py:43: UnicodeEncodeError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant