Giter VIP home page Giter VIP logo

Comments (10)

rbtcollins avatar rbtcollins commented on August 21, 2024

How were you testing it? (what specific command did you run?)

from testtools.

jlec avatar jlec commented on August 21, 2024

Like you are doing here https://github.com/testing-cabal/testtools/blob/master/.travis.yml#L44

from testtools.

rbtcollins avatar rbtcollins commented on August 21, 2024

You're running it within travis? How are you installing your dependencies?

from testtools.

rbtcollins avatar rbtcollins commented on August 21, 2024

What versions of the dependencies do you have installed?

from testtools.

jlec avatar jlec commented on August 21, 2024

I using system installed packages, mainly installed using python setup.py install into systems site-dir.

extras-0.0.3
mimeparse-0.1.4
pbr-1.8.1
unittest2-1.1.0
traceback2-1.4.0

from testtools.

rbtcollins avatar rbtcollins commented on August 21, 2024

Hmm, can't find mimeparse 0.1.4 - it has no distributions up on PyPI.

from testtools.

rbtcollins avatar rbtcollins commented on August 21, 2024
(test)robertc@lifeless-z140:/tmp/testtools-1.8.0$ pip install extras==0.0.3 mimeparse==0.1.3 pbr unittest2==1.1.0 traceback2==1.4.0
Collecting extras==0.0.3
Collecting mimeparse==0.1.3
  Downloading mimeparse-0.1.3.tar.gz
Collecting pbr
  Using cached pbr-1.8.1-py2.py3-none-any.whl
Collecting unittest2==1.1.0
  Using cached unittest2-1.1.0-py2.py3-none-any.whl
Collecting traceback2==1.4.0
  Using cached traceback2-1.4.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7 (from unittest2==1.1.0)
Collecting six>=1.4 (from unittest2==1.1.0)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting linecache2 (from traceback2==1.4.0)
  Using cached linecache2-1.0.0-py2.py3-none-any.whl
Installing collected packages: extras, mimeparse, pbr, linecache2, traceback2, six, unittest2
  Running setup.py install for mimeparse
Successfully installed extras-0.0.3 linecache2-1.0.0 mimeparse-0.1.3 pbr-1.8.1 six-1.10.0 traceback2-1.4.0 unittest2-1.1.0
(test)robertc@lifeless-z140:/tmp/testtools-1.8.0$ python -m testtools.run testtools.tests.test_suite
Tests running...
======================================================================
ERROR: testtools.tests.test_testresult.TestStreamToDict.test_bad_mime
----------------------------------------------------------------------
Traceback (most recent call last):
  File "testtools/tests/test_testresult.py", line 781, in test_bad_mime
    test_id='id')
  File "testtools/testresult/real.py", line 638, in status
    primary, sub, parameters = parse_mime_type(mime_type)
  File "/home/robertc/.virtualenvs/test/local/lib/python2.7/site-packages/mimeparse.py", line 33, in parse_mime_type
    for param in parts[1:] ])
ValueError: dictionary update sequence element #0 has length 3; 2 is required

Ran 1196 tests in 0.179s
FAILED (failures=1)

Thats indicative of a bug in mimeparse 0.1.3 I think; trying to find a 0.1.4 tarball to install :/

from testtools.

rbtcollins avatar rbtcollins commented on August 21, 2024

Copied in a version of mimeparse, everything passes:

python -m testtools.run testtools.tests.test_suite
Tests running...

Ran 1196 tests in 0.152s
OK

So I think you're going to need to diagnose whats broken about your environment a bit more.

from testtools.

jlec avatar jlec commented on August 21, 2024

Hmm, can't find mimeparse 0.1.4 - it has no distributions up on PyPI.

It's actually python-mimeparse.

from testtools.

jlec avatar jlec commented on August 21, 2024

okay, I tried to run it again on my other machine and it works. Closing it for now.

from testtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.