Created
May 7, 2017 01:05
-
-
Save mahmoud/5593839cd76ee4349eee52d3d85f032e to your computer and use it in GitHub Desktop.
one expects a pdb on failure, but only gets it on start. (produced by changing one character in the test_queryAdd test to simulate a failure)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python -m twisted.trial --debug twisted.python.test.test_url | |
> /home/mahmoud/projects/twisted/src/twisted/trial/runner.py(229)run() | |
-> try: | |
(Pdb) c | |
twisted.python.test.test_url | |
TestURL | |
test_alreadyIRIAsIRI ... [OK] | |
test_alreadyURIAsURI ... [OK] | |
test_asIRI ... [OK] | |
test_asURI ... [OK] | |
test_badUTF8AsIRI ... [OK] | |
test_child ... [OK] | |
test_childInitRoot ... [OK] | |
test_click ... [OK] | |
test_clickCollapse ... [OK] | |
test_clickRFC3986 ... [OK] | |
test_clickSchemeRelPath ... [OK] | |
test_cloneUnchanged ... [OK] | |
test_differentNotEqual ... [OK] | |
test_differentUnequal ... [OK] | |
test_empty ... [OK] | |
test_equality ... [OK] | |
test_fragmentEquality ... [OK] | |
test_fromText ... [OK] | |
test_identicalEqual ... [OK] | |
test_identicalNotUnequal ... [OK] | |
test_init ... [OK] | |
test_initDefaults ... [OK] | |
test_initPercent ... [OK] | |
test_invalidArguments ... [OK] | |
test_justQueryText ... [OK] | |
test_mailto ... [OK] | |
test_multiChild ... [OK] | |
test_otherTypesNotEqual ... [OK] | |
test_otherTypesUnequal ... [OK] | |
test_parseEqualSignInParamValue ... [OK] | |
test_pathIterable ... [OK] | |
test_portText ... [OK] | |
test_queryAdd ... [FAIL] | |
test_queryIterable ... [OK] | |
test_queryRemove ... [OK] | |
test_querySet ... [OK] | |
test_repr ... [OK] | |
test_roundtrip ... [OK] | |
test_sibling ... [OK] | |
test_similarEqual ... [OK] | |
test_similarNotUnequal ... [OK] | |
test_technicallyTextIsIterableBut ... [OK] | |
test_userinfo ... [OK] | |
=============================================================================== | |
[FAIL] | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/unittest/case.py", line 329, in run | |
testMethod() | |
File "/home/mahmoud/projects/twisted/src/twisted/python/test/test_url.py", line 422, in test_queryAdd | |
URL(host=u"www.foo.com").add(u"foo", u"bar") | |
File "/usr/lib/python2.7/unittest/case.py", line 513, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/usr/lib/python2.7/unittest/case.py", line 924, in assertMultiLineEqual | |
self.fail(self._formatMessage(msg, standardMsg)) | |
File "/usr/lib/python2.7/unittest/case.py", line 410, in fail | |
raise self.failureException(msg) | |
exceptions.AssertionError: u'http://www.foo.com?foo=bar' != u'http://www.foo.com/?foo=bar' | |
- http://www.foo.com?foo=bar | |
+ http://www.foo.com/?foo=bar | |
? + | |
twisted.python.test.test_url.TestURL.test_queryAdd | |
------------------------------------------------------------------------------- | |
Ran 43 tests in 0.052s | |
FAILED (failures=1, successes=42) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment