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

Tests fail when HTTP server is running on localhost #11

Open
mgorny opened this issue Apr 21, 2018 · 0 comments
Open

Tests fail when HTTP server is running on localhost #11

mgorny opened this issue Apr 21, 2018 · 0 comments

Comments

@mgorny
Copy link

mgorny commented Apr 21, 2018

 * python2_7: running distutils-r1_run_phase python_test
E.......
======================================================================
ERROR: testBrokenEndpoint (test_net.ConsumerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/portage/dev-python/python-oembed-0.2.4/work/python-oembed-0.2.4/test/test_net.py", line 134, in testBrokenEndpoint
    'http://localhost/test')
  File "/usr/lib64/python2.7/unittest/case.py", line 473, in assertRaises
    callableObj(*args, **kwargs)
  File "/tmp/portage/dev-python/python-oembed-0.2.4/work/python-oembed-0.2.4/oembed/__init__.py", line 503, in embed
    return self._request(url, **opt)
  File "/tmp/portage/dev-python/python-oembed-0.2.4/work/python-oembed-0.2.4/oembed/__init__.py", line 485, in _request
    return endpoint.get(url, **opt)
  File "/tmp/portage/dev-python/python-oembed-0.2.4/work/python-oembed-0.2.4/oembed/__init__.py", line 337, in get
    return self.fetch(self.request(url, **opt))
  File "/tmp/portage/dev-python/python-oembed-0.2.4/work/python-oembed-0.2.4/oembed/__init__.py", line 366, in fetch
    raise OEmbedError('Invalid mime-type in response - %s' % headers['Content-Type'])
OEmbedError: Invalid mime-type in response - text/html
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