[issue15323] Provide target name in output message when Mock.assert_called_once_with fails

2012-07-10 Thread Brian Jones
New submission from Brian Jones bkjo...@gmail.com: In Python 3.3.0b1, if the number of calls to a mock is, say, zero, and you call assert_called_once_with() on that mock, it will throw an exception which says Expected to be called once. Called 0 times. This is nice, but it would be nicer

[issue14819] Add `assertIsSubclass` and `assertNotIsSubclass` to `unittest.TestCase`

2012-05-16 Thread Brian Jones
Brian Jones bkjo...@gmail.com added the comment: I can't find a previous discussion of this topic. If you know the list it happened on, or the bug#, let me know as I'd be curious to see the discussion. While I could concede that checking type is arguably a more common case than checking

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-14 Thread Brian Jones
Changes by Brian Jones bkjo...@gmail.com: -- nosy: +Brian.Jones ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14278 ___ ___ Python-bugs-list

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-13 Thread Brian Jones
Changes by Brian Jones bkjo...@gmail.com: -- nosy: +r.david.murray -Brian.Jones ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14278 ___ ___ Python

[issue14293] Message methods delegated via __getattr__ inaccessible using super().method

2012-03-13 Thread Brian Jones
New submission from Brian Jones bkjo...@gmail.com: In email6, the message.Message class tries to delegate calls to methods not defined in Message to message._HeaderList. However, delegating in this way makes the methods inaccessible when accessing them through a call to super(). This comes

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-12 Thread Brian Jones
New submission from Brian Jones bkjo...@gmail.com: In email.utils.localtime, there's a variable 'offset' that will only exist if time.daylight evaluates to True. If time.daylight evaluates to False, you'll get an UnboundLocalError, because 'offset' is being referenced without being assigned

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-10-19 Thread Brian Jones
Brian Jones bkjo...@gmail.com added the comment: I've just done a fresh hg pull and new build, and I can no longer reproduce the problem. Yay! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12527

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-07-10 Thread Brian Jones
New submission from Brian Jones bkjo...@gmail.com: The documentation here: http://docs.python.org/dev/library/unittest.html#unittest.TestCase.assertRaisesRegex Indicates that, when used as a context manager, assertRaisesRegex should accept a keyword argument 'msg'. However, that doesn't appear

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-07-10 Thread Brian Jones
Brian Jones bkjo...@gmail.com added the comment: No, I'm not. I'm sorry for not including this output initially. Here's what I get (and I've added a sys.version_info line just to be double sure the right executable is being invoked at runtime): sys.version_info(major=3, minor=3, micro=0

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-07-10 Thread Brian Jones
Brian Jones bkjo...@gmail.com added the comment: If there's some reason, based on the source snippet I posted from case.py, that my msg should be making it to the output, can someone explain why/how it should get there? I don't see any reason, from looking at the source, that 'msg' should

[issue11113] html.entities mapping dicts need updating?

2011-02-03 Thread Brian Jones
New submission from Brian Jones bkjo...@gmail.com: In Python 3.2b2, html.entities.codepoint2name and name2codepoint only support the 252 HTML entity names defined in the HTML 4 spec from 1997. I'm wondering if there's a reason not to support W3C Recommendation 'XML Entity Definitions

[issue10510] distutils upload/register should use CRLF in HTTP requests

2010-11-26 Thread Brian Jones
Brian Jones bkjo...@gmail.com added the comment: Sure. I'll create a patch in the next few days and submit it. Thanks for the link to the guidelines. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10510

[issue10510] distutils upload/register should use CRLF in HTTP requests

2010-11-26 Thread Brian Jones
Brian Jones bkjo...@gmail.com added the comment: So... have I missed a memo, or is it currently impossible to test the current svn version of distutils in the current svn version of Python? The tests for (at least) register and upload are written using Python 2.x syntax and modules. How

[issue10510] distutils upload/register should use CRLF in HTTP requests

2010-11-26 Thread Brian Jones
Brian Jones bkjo...@gmail.com added the comment: If it's not a bug in distutils1, I imagine it will not be a bug in distutils2, since that will also presumably work with PyPI, and PyPI will be the single solitary supported implementation of the service? I also don't see distutils2

[issue10510] distutils.command.upload/register HTTP message headers: bad line termination

2010-11-23 Thread Brian Jones
Brian Jones bkjo...@gmail.com added the comment: In truth, I don't personally know if the other PyPI server implementations also have to work around this issue. Other comments on that are welcome. As for my own implementation, I've implemented a workaround to this, but I'm working around

[issue10510] distutils.command.upload/register HTTP message headers: bad line termination

2010-11-22 Thread Brian Jones
New submission from Brian Jones bkjo...@gmail.com: In trying to write a PyPI service, I of course need to support the registration and upload features of setup.py, which uses distutils for those actions. One thing making this a bit more difficult than need be is the fact