[issue35126] Mistake in FAQ about converting number to string.

2018-10-31 Thread Pawel
New submission from Pawel : In this question: https://docs.python.org/2.7/faq/programming.html#how-do-i-convert-a-number-to-a-string There is a statement: "{:.3f}".format(1/3) yields '0.333' While In [2]: "{:.3f}".format(1/3) Out[2]: '0.000' In [3

[issue33667] Mock calls on mutable objects

2018-05-28 Thread Pawel
Pawel added the comment: Ok, fair enough. Thank You for explanation. I was just surprised with this behaviour. On the other hand, I don't like mutable objects and I'm trying to avoid them. -- ___ Python tracker <https://bugs.python.o

[issue33667] Mock calls on mutable objects

2018-05-28 Thread Pawel
New submission from Pawel : When method of mocked object is called multiple times with mutable object as parameter and attribute of this object has been updated between calls, mock_calls is only aware of the last value. I think it unexpected behaviour, that mock doesn't track value ch

[issue4080] unittest: display time used by each test case

2012-03-02 Thread Pawel Prokop
Pawel Prokop added the comment: I agree with Ezio, this feature should have an option to enable/disable. Anyway, I use it in different way. Since 2008, I've used this feature for performance comparision, whether some implementation changes in application code did not slow down applic

[issue4080] pyunit - display time of each test case - patch

2010-07-19 Thread Pawel Prokop
Pawel Prokop added the comment: I think that a delay time of calling a decorator is not important, because this should be constant in each test execution, so no matter. I shall be able to provide a patch in few days. Thanks -- ___ Python tracker

[issue4080] pyunit - display time of each test case - patch

2009-11-14 Thread Pawel Prokop
Pawel Prokop added the comment: Repack of unittest was good idea. It is a patch against trunk, one test case is provided and documentation update. -- Added file: http://bugs.python.org/file15332/unittest_runTime.patch ___ Python tracker <h

[issue4080] pyunit - display time of each test case - patch

2008-10-08 Thread Pawel Prokop
New submission from Pawel Prokop <[EMAIL PROTECTED]>: I've needed to measure each unit test running time to measure the performance changing of each functionality that every test case tests. Latest version of pyunit has only displayed summary running time of the suite, so I've i