Skip to content

Tests fail when HTTP server is running on localhost #11

Description

@mgorny
 * 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions