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
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
Changes by Brian Jones bkjo...@gmail.com:
--
nosy: +Brian.Jones
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14278
___
___
Python-bugs-list
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
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
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
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
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
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
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
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
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
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
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
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
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
16 matches
Mail list logo