Comments (10)
How were you testing it? (what specific command did you run?)
from testtools.
Like you are doing here https://github.com/testing-cabal/testtools/blob/master/.travis.yml#L44
from testtools.
You're running it within travis? How are you installing your dependencies?
from testtools.
What versions of the dependencies do you have installed?
from testtools.
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.
Hmm, can't find mimeparse 0.1.4 - it has no distributions up on PyPI.
from testtools.
(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.
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.
Hmm, can't find mimeparse 0.1.4 - it has no distributions up on PyPI.
It's actually python-mimeparse.
from testtools.
okay, I tried to run it again on my other machine and it works. Closing it for now.
from testtools.
Related Issues (20)
- How can we generate the report via testtools? HOT 1
- New release, with no dependency on unittest2? HOT 2
- 2.4.0: build_sphinx warnings HOT 4
- pytest is failing HOT 7
- If a function passed to `.addOnException` itself raises an exception, the test is treated as passing.
- Need release to work on Python 3.10 HOT 1
- Please make a new release HOT 2
- Deprecate testtools.distutilscmd?
- `TestCase.subTest` does not isolate tests
- βIt is no longer useless β¦β in NEWS
- Release to support Python 3.10 HOT 1
- Update `doc/description.rst`
- trailing newline in str comparison is hard to spot
- Compatibility with Python 3.11
- The testtools documentation on readthedocs is not up to date. HOT 3
- 2.5.0 + master: sphinx warnings `reference target not found`
- 2.5.0 + master (b68af1b0): pytest is failing HOT 18
- Test failures with PyPy3.9 HOT 2
- deprecation warning on Python 3.11: 'cgi' is deprecated and slated for removal in Python 3.13 HOT 1
- testcase.py __eq__ function throwing an error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testtools.