[issue14403] unittest module: provide inverse of "assertRaises"

2012-03-25 Thread Danilo Bargen
New submission from Danilo Bargen : Most assert statements of the unittest module provide both an assert statement as well as its inverse, like "assertIn" and "assertNotIn". There is apparently no such thing for exceptions. I can do the following: > with self.ass

[issue14403] unittest module: provide inverse of "assertRaises"

2012-03-25 Thread Danilo Bargen
Danilo Bargen added the comment: >> I don't want to simply execute the code and hope that it doesn't raise >> an exception, because if it does, the test fails with an "error" status >> instead of a "failed" status. > > So what? A buggy t

[issue13936] datetime.time(0, 0, 0) evaluates to False despite being a valid time

2012-11-27 Thread Danilo Bargen
Danilo Bargen added the comment: I disagree, I think this bug should be reopened and fixed. A use case that I just ran into: I'm using a Django form with time fields that aren't required, but that are only valid in combination (if there's a open time there has to be a close tim

[issue16791] itertools.chain.from_iterable doesn't stop

2012-12-27 Thread Danilo Bargen
Changes by Danilo Bargen : -- nosy: +gwrtheyrn ___ Python tracker <http://bugs.python.org/issue16791> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7434] general pprint rewrite

2013-01-05 Thread Danilo Bargen
Changes by Danilo Bargen : -- nosy: +gwrtheyrn ___ Python tracker <http://bugs.python.org/issue7434> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17144] Distutils: "sdist register upload" ignores -r argument

2013-02-06 Thread Danilo Bargen
New submission from Danilo Bargen: Where I work, we use a custom pypi server to upload our internal packages. With a package that has a setup.py created using setuptools, I can simply issue: $ python setup.py sdist register upload -r local ...and it will get registered and uploaded to our

[issue17144] Distutils: "sdist register upload" ignores -r argument

2013-02-07 Thread Danilo Bargen
Danilo Bargen added the comment: chris, no, that command registers the package with the local index but tries to upload it to pypi. What works is "setup.py sdist register -r wbrp upload -r wbrp" but that's kind of awful. -- ___