[issue16799] switch regrtest from getopt options to argparse Namespace

2013-01-04 Thread Kushal Das
Kushal Das added the comment: The patches look good. Applied successfully and tests ran ok. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16799

[issue17080] A better error message for float()

2013-01-30 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17080 ___ ___ Python-bugs-list

[issue17256] code example in C API docsshould be highlighted

2013-02-21 Thread Kushal Das
Kushal Das added the comment: Following patch solves the problem. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file29154/issue17256.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17256

[issue17227] devguide: buggy heading numbers

2013-02-21 Thread Kushal Das
Kushal Das added the comment: Adding a patch to fix this issue. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file29155/issue17227.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17227

[issue17227] devguide: buggy heading numbers

2013-02-21 Thread Kushal Das
Kushal Das added the comment: I had tried this, but doesn't this make the contents in the left side bar unwieldy (and perhaps also on the devguide index page) -- is that what we want? I was under the assumption that the purpose of the tocdepth directive was to avoid that. Yes, missed

[issue17227] devguide: buggy heading numbers

2013-02-21 Thread Kushal Das
Kushal Das added the comment: I found that http://docs.python.org/devguide/stdlibchanges.html also has left side bar text with full index just like my patch does. For FAQ the problem is title texts are kind of long so they look bad. -- ___ Python

[issue15465] Improved documentation for C API version info

2013-02-26 Thread Kushal Das
Kushal Das added the comment: Attaching patch with the initial documentation of the macros. It also fixes the typo in the title of stable API section. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file29258/issue15465.patch

[issue15465] Improved documentation for C API version info

2013-02-27 Thread Kushal Das
Kushal Das added the comment: Adding the updated patch with changes as suggested in the review -- Added file: http://bugs.python.org/file29260/issue15465v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15465

[issue15465] Improved documentation for C API version info

2013-02-27 Thread Kushal Das
Kushal Das added the comment: version 3 of the patch where sys.hexversion table is moved and now a link to api and abi versioning given. -- Added file: http://bugs.python.org/file29277/issue15465v3.patch ___ Python tracker rep...@bugs.python.org

[issue15465] Improved documentation for C API version info

2013-03-05 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: Added file: http://bugs.python.org/file29313/issue15465v4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15465

[issue15465] Improved documentation for C API version info

2013-03-05 Thread Kushal Das
Kushal Das added the comment: version 4 of the patch contains a new column in table as Bytes as suggested by Ezio Melotti -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15465

[issue15465] Improved documentation for C API version info

2013-03-05 Thread Kushal Das
Kushal Das added the comment: Attached version 5 of the patch with changes based on suggestions of ncoghlan -- Added file: http://bugs.python.org/file29321/issue15465v5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15465

[issue17409] resource.setrlimit doesn't respect -1

2013-03-17 Thread Kushal Das
Kushal Das added the comment: On Fedora 17, x86_64 ./python Python 3.4.0a0 (default:fb50eb64e097, Feb 22 2013, 11:43:18) [GCC 4.7.2 20120921 (Red Hat 4.7.2-2)] on linux Type help, copyright, credits or license for more information. import resource [92450 refs, 32257 blocks

[issue17358] imp.load_module() leads to the improper caching of the 'file' argument

2013-03-18 Thread Kushal Das
Kushal Das added the comment: Working on a patch for this. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17358 ___ ___ Python

[issue17358] imp.load_module() leads to the improper caching of the 'file' argument

2013-03-18 Thread Kushal Das
Kushal Das added the comment: Can not reproduce it :( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17358 ___ ___ Python-bugs-list mailing list

[issue5713] smtplib gets out of sync if server returns a 421 status

2013-03-20 Thread Kushal Das
Kushal Das added the comment: Here is a patch along with test case update which can be cleanly applied into default. -- nosy: +kushaldas Added file: http://bugs.python.org/file29507/issue5713.patch ___ Python tracker rep...@bugs.python.org http

[issue17498] error responses from server are masked in smtplib when server closes connection

2013-03-20 Thread Kushal Das
Kushal Das added the comment: Working on a patch for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17498 ___ ___ Python-bugs-list mailing

[issue17498] error responses from server are masked in smtplib when server closes connection

2013-03-20 Thread Kushal Das
Kushal Das added the comment: The following patch adds a _rset method which catches any SMTPServerDisconnected exception, also includes the corresponding test and test_421_from_mail_cmd assert statement typo fix. -- keywords: +patch Added file: http://bugs.python.org/file29521

[issue15615] More tests for JSON decoder to test Exceptions

2012-08-10 Thread Kushal Das
New submission from Kushal Das: Added two more tests in json module to test exception cases. test_extra_data: this test checks the error condition when we have extra data in the stream. test_invalid_escape: this test checks for the invalid escape sequence in the stream

[issue15615] More tests for JSON decoder to test Exceptions

2012-08-11 Thread Kushal Das
Kushal Das added the comment: Contributor's agreement signed and sent to the given email address. Thanks for the input. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15615

[issue19167] sqlite3 cursor.description varies across Linux (3.3.1), Win32 (3.3.2), when selecting from a view.

2013-10-08 Thread Kushal Das
Kushal Das added the comment: Looking at the code, it seems to be a sqlite issue. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19167

[issue13510] Clarify that readlines() is not needed to iterate over a file

2013-03-28 Thread Kushal Das
Kushal Das added the comment: Working on a patch for this. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13510 ___ ___ Python

[issue17660] mock.patch could whitelist builtins to not need create=True

2013-04-08 Thread Kushal Das
Kushal Das added the comment: Working on this. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17660 ___ ___ Python-bugs-list

[issue17660] mock.patch could whitelist builtins to not need create=True

2013-04-08 Thread Kushal Das
Kushal Das added the comment: Initial patchset along with documentation and tests update. -- keywords: +patch Added file: http://bugs.python.org/file29731/issue17660.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17660

[issue17842] Add base64 module tests for a bytearray argument

2013-04-25 Thread Kushal Das
Kushal Das added the comment: Patch with bytearray based tests. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file30012/issue17842_v1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17842

[issue17843] Lib/test/testbz2_bigmem.bz2 trigger virus warnings

2013-04-25 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17843 ___ ___ Python-bugs-list

[issue17839] base64 module should use memoryview

2013-04-25 Thread Kushal Das
Kushal Das added the comment: Working on this. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17839 ___ ___ Python-bugs-list

[issue17839] base64 module should use memoryview

2013-04-26 Thread Kushal Das
Kushal Das added the comment: A patch with tests update to use memoryview in base64 module. -- keywords: +patch Added file: http://bugs.python.org/file30022/issue17839_v1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue17826] Setting a side_effect on mock from create_autospec doesn't work

2013-04-26 Thread Kushal Das
Kushal Das added the comment: Working on this. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17826 ___ ___ Python-bugs-list

[issue17826] Setting a side_effect on mock from create_autospec doesn't work

2013-04-26 Thread Kushal Das
Kushal Das added the comment: Patch along with a test for the same. -- keywords: +patch Added file: http://bugs.python.org/file30025/issue17826_v1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17826

[issue17842] Add base64 module tests for a bytearray argument

2013-04-26 Thread Kushal Das
Kushal Das added the comment: All the decoders create bytes as result, not sure how to assume if the result should be bytes or bytearray. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17842

[issue17842] Add base64 module tests for a bytearray argument

2013-04-27 Thread Kushal Das
Kushal Das added the comment: Bytearray encoding and decoding -- Added file: http://bugs.python.org/file30041/issue17842_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17842

[issue17861] put opcode information in one place

2013-04-28 Thread Kushal Das
Kushal Das added the comment: Here is a simple script which prints the opcode.h in console. We can redirect it as required. -- nosy: +kushaldas Added file: http://bugs.python.org/file30045/generate_opcode_h.py ___ Python tracker rep

[issue17861] put opcode information in one place

2013-04-28 Thread Kushal Das
Kushal Das added the comment: Second version of the script with the fix for HAVE_ARGUMENT -- Added file: http://bugs.python.org/file30046/generate_opcode_h.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17861

[issue17861] put opcode information in one place

2013-04-28 Thread Kushal Das
Kushal Das added the comment: Third revision with fixed empty spaces at the end of the lines. -- Added file: http://bugs.python.org/file30048/generate_opcode_h.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17861

[issue17826] Setting a side_effect on mock from create_autospec doesn't work

2013-04-28 Thread Kushal Das
Kushal Das added the comment: Version 2 of the patch, with typo fixed also one more addition test to check callable side effect in create_autospec. -- Added file: http://bugs.python.org/file30055/issue17826_v2.patch ___ Python tracker rep

[issue17861] put opcode information in one place

2013-04-29 Thread Kushal Das
Kushal Das added the comment: As we discussed on #python-dev channel this new patch includes the script in Tools/scripts/generate_opcode_h.py and it also contains the required Makefile.pre.in change so that it gets auto(re)generated at compile time if required. -- keywords: +patch

[issue17861] put opcode information in one place

2013-04-29 Thread Kushal Das
Kushal Das added the comment: Version 2 of the patchset edited as per review. -- Added file: http://bugs.python.org/file30066/issue17861_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17861

[issue1475692] replacing obj.__dict__ with a subclass of dict

2013-04-29 Thread Kushal Das
Kushal Das added the comment: In Objects/typeobject.c we have subtype_setdict function, in which at line 1830 we have PyDict_Check() macro call, which checks if it is a subclass of dict or not. The definition is in Include/dictobject.h #define PyDict_Check(op

[issue17914] add os.cpu_count()

2013-05-06 Thread Kushal Das
Kushal Das added the comment: I am interested to submit a patch on this. Should I move the implementation to os module and made the multiprocessing one as an alias ? or keep it in both places ? I prefer the idea of returning -1 instead of the current way of raising NotImplementedError

[issue12458] Tracebacks should contain the first line of continuation lines

2013-05-07 Thread Kushal Das
Kushal Das added the comment: I have been able to get the logical line details (start of it), now working on to print the required lines. The current way of showing source lines removes any indentation, but to show all the physical lines (related to the logical line) one should show

[issue16053] strict parameter is not documented in csv module

2012-09-28 Thread Kushal Das
Kushal Das added the comment: csv.Dialect.strict is now documented. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file27340/csv_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16053

[issue16057] Subclasses of JSONEncoder should not be insturcted to call JSONEncoder.decode

2012-09-28 Thread Kushal Das
Kushal Das added the comment: The implementation clearly says that default method should return a serializable object or calls the base implementation to raise TypeError. So I don't think any of the examples is a bug. -- nosy: +kushaldas ___ Python

[issue16071] fix link to email.message.Message in mailbox docs

2012-09-28 Thread Kushal Das
Kushal Das added the comment: But the whole 18.4.2 is mount mailbox.Message so, it seems to be correct documentation. email.Message.Message is properly mentioned in the 4th line properly. I don't think it is bug. -- nosy: +kushaldas ___ Python

[issue16053] strict parameter is not documented in csv module

2012-09-28 Thread Kushal Das
Kushal Das added the comment: Updated with new patch -- Added file: http://bugs.python.org/file27341/csv_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16053

[issue16074] bad error message in os.rename

2012-09-28 Thread Kushal Das
Kushal Das added the comment: Just for record the same issue can be seen in a Linux box also. I tested in a Fedora 17 system. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16074

[issue16074] bad error message in os.rename

2012-09-28 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: Removed file: http://bugs.python.org/file27342/os_rename.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16074

[issue16057] Subclasses of JSONEncoder should not be insturcted to call JSONEncoder.decode

2012-09-28 Thread Kushal Das
Kushal Das added the comment: Ok, I will submit a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16057 ___ ___ Python-bugs-list mailing

[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-03 Thread Kushal Das
Kushal Das added the comment: Attached patch which has a new test called test_executable_precedence to test precedence of executable argument over args[0]. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file27407/executable_precedence.patch

[issue16057] Subclasses of JSONEncoder should not be insturcted to call JSONEncoder.decode

2012-10-03 Thread Kushal Das
Kushal Das added the comment: Patch to update docstring and documentation with explicit saying that calling JSONEncoder.default raises a TypeError -- keywords: +patch Added file: http://bugs.python.org/file27408/explicit_json_doc_update_for_encoder_default.patch

[issue16057] Subclasses of JSONEncoder should not be insturcted to call JSONEncoder.decode

2012-10-03 Thread Kushal Das
Kushal Das added the comment: The previous patch should be back committed to all 3.x and 2.7 branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16057

[issue16125] open accepts arbitrary mode strings as long as they contain U

2012-10-04 Thread Kushal Das
Kushal Das added the comment: I am working on patch for this. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16125

[issue16125] open accepts arbitrary mode strings as long as they contain U

2012-10-04 Thread Kushal Das
Kushal Das added the comment: Patch to update mode parsing of open call. All tests seem to be running ok. File changed: Objects/fileobject.c -- keywords: +patch Added file: http://bugs.python.org/file27411/open_mode2.patch ___ Python tracker rep

[issue16130] Porting to Python 3.3 needs to be fixed in What's new In Python 3.4

2012-10-04 Thread Kushal Das
Kushal Das added the comment: Documentation patch to show correct Python version. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file27418/issue_16130.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-04 Thread Kushal Das
Kushal Das added the comment: Can not reproduce this on 2.7.3 on Fedora 17, x86_64. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16137

[issue16115] test that executable arg to Popen() takes precedence over args

2012-10-06 Thread Kushal Das
Kushal Das added the comment: On Saturday, October 6, 2012, Andrew Svetlov wrote: Andrew Svetlov added the comment: Committed. Thank you, Kushal Das. BTW, please fill http://www.python.org/psf/contrib/ as contributor of Python project. We would to get that agreement from everybody who

[issue15880] os.path.split() and long UNC names

2012-10-08 Thread Kushal Das
Kushal Das added the comment: splitunc is deprecated since 3.1. It is also written in the code that Paths containing drive letters never have an UNC part -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15880

[issue14039] Add metavar argument to add_subparsers() in argparse

2012-10-09 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14039 ___ ___ Python-bugs-list

[issue16061] performance regression in string replace for 3.3

2012-10-09 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16061 ___ ___ Python-bugs-list

[issue16125] open accepts arbitrary mode strings as long as they contain U

2012-10-09 Thread Kushal Das
Kushal Das added the comment: So, should I submit a new patch which will just put a warning ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16125

[issue16238] Automatically remove build directory when build options changed

2012-10-15 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16238 ___ ___ Python-bugs-list

[issue16245] Update html.entities.html5 dictionary and parseentities.py

2012-10-16 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16245 ___ ___ Python-bugs-list

[issue16268] dir(closure) claims that a closure has no __dir__, only to work later after manually invoking __dir__ from its type

2012-10-17 Thread Kushal Das
Changes by Kushal Das kushal...@gmail.com: -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16268 ___ ___ Python-bugs-list

[issue16459] sys.stdout.write printing length of string

2012-11-11 Thread Kushal Das
Kushal Das added the comment: sys.stdout.write returns the length of the string it printed. try these: x = sys.stdout.write(abc) print x or from console python -c 'import sys ; sys.stdout.write(abc)' -- nosy: +kushaldas ___ Python tracker rep

[issue16493] Document the 'optimize' argument to compile()

2012-11-17 Thread Kushal Das
Kushal Das added the comment: I will submit a patch if no one is working on it. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16493

[issue16493] Document the 'optimize' argument to compile()

2012-11-19 Thread Kushal Das
Kushal Das added the comment: I guess somebody already did the work http://docs.python.org/3.4/library/functions.html?highlight=compile#compile ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16493

[issue19716] test that touch doesn't change file contents

2013-11-22 Thread Kushal Das
Kushal Das added the comment: i will submit a patch tomorrow. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19716

[issue19716] test that touch doesn't change file contents

2013-11-22 Thread Kushal Das
Kushal Das added the comment: Patch to check no change in file content after pathlib.touch(). -- keywords: +patch Added file: http://bugs.python.org/file32792/issue19716_v1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue20842] pkgutil docs should reference glossary terms not PEP 302

2014-03-13 Thread Kushal Das
Kushal Das added the comment: Will submit a patch for this. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20842 ___ ___ Python

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-08 Thread Kushal Das
Kushal Das added the comment: Here is a patch which stops the breakage in getpass for python3. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file34766/issue21169.patch ___ Python tracker rep...@bugs.python.org http

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-08 Thread Kushal Das
Kushal Das added the comment: Version 2 of the patch with a test update. -- Added file: http://bugs.python.org/file34767/issue21169_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21169

[issue21170] Incorrect signature for unittest.TestResult.startTestRun(), .stopTestRun()

2014-04-08 Thread Kushal Das
Kushal Das added the comment: Here is a patch which fixes the documentation for unittest. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file34772/issue21170.patch ___ Python tracker rep...@bugs.python.org http

[issue21182] json.loads errors out on valid JSON

2014-04-08 Thread Kushal Das
Kushal Das added the comment: It is not a valid JSON. You may want to validate it against http://jsonlint.com/ What you have inside the string (single quotes) is the JSON representation but not the string representation which json.loads is supposed to parse. -- nosy: +kushaldas

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-09 Thread Kushal Das
Kushal Das added the comment: Updated patch with discovering of currect locale and corresponding test case. -- Added file: http://bugs.python.org/file34775/issue21169_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-09 Thread Kushal Das
Kushal Das added the comment: New patch with actual test case :) -- Added file: http://bugs.python.org/file34776/issue21169_v4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21169

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-13 Thread Kushal Das
Kushal Das added the comment: Here is a new patch which uses stream.encoding instead getting the encoding from the locale as suggested by David. It also contains the new test. -- Added file: http://bugs.python.org/file34807/issue21169_v5.patch

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-13 Thread Kushal Das
Kushal Das added the comment: New patchset with updated test, now sending ascii stream into the call as argument. -- Added file: http://bugs.python.org/file34810/issue21169_v6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-14 Thread Kushal Das
Kushal Das added the comment: Another patch with docs update and one line code comment. -- Added file: http://bugs.python.org/file34815/issue21169_v7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21169

[issue17498] error responses from server are masked in smtplib when server closes connection

2014-04-14 Thread Kushal Das
Kushal Das added the comment: New version of the patch which can be successfully applied to tip. -- Added file: http://bugs.python.org/file34817/issue17498_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17498

[issue17660] mock.patch could whitelist builtins to not need create=True

2014-04-14 Thread Kushal Das
Kushal Das added the comment: Updated patch with builtins module. -- versions: +Python 3.4 -Python 3.5 Added file: http://bugs.python.org/file34825/issue17660_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17660

[issue17826] Setting a side_effect on mock from create_autospec doesn't work

2014-04-14 Thread Kushal Das
Kushal Das added the comment: New patch with fix in proper place for side_effect for functions (includes test case). -- versions: +Python 3.3 -Python 3.5 Added file: http://bugs.python.org/file34838/issue17826_v3.patch ___ Python tracker rep

[issue17861] put opcode information in one place

2014-04-14 Thread Kushal Das
Kushal Das added the comment: New patch with .hgtouch file details. -- versions: +Python 3.4 -Python 3.5 Added file: http://bugs.python.org/file34842/issue17861_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17861

[issue21222] Mock create_autospec with name argument fails

2014-04-14 Thread Kushal Das
New submission from Kushal Das: from unittest import mock def b(): ... print(hello) ... q = mock.create_autospec(b, name=a) Traceback (most recent call last): File stdin, line 1, in module File /home/kdas/code/python/cpython3/Lib/unittest/mock.py, line 2092, in create_autospec

[issue21222] Mock create_autospec with name argument fails

2014-04-14 Thread Kushal Das
Kushal Das added the comment: Fix for the issue with test case. We are checking name in keyword arguments, if found replace _name with it and delete it from keyword arguments. -- keywords: +patch Added file: http://bugs.python.org/file34854/issue21222.patch

[issue17861] put opcode information in one place

2014-04-14 Thread Kushal Das
Kushal Das added the comment: New patch with proper changesets. -- Added file: http://bugs.python.org/file34855/issue17861_v4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17861

[issue21229] Path used for HTTP PUT request doesn't match the description

2014-04-14 Thread Kushal Das
Kushal Das added the comment: You should have a look at the following guides: https://docs.python.org/devguide/docquality.html https://docs.python.org/devguide/patch.html -- nosy: +kushal.das ___ Python tracker rep...@bugs.python.org http

[issue17861] put opcode information in one place

2014-04-15 Thread Kushal Das
Kushal Das added the comment: New patch from a clean repo, with changed opcode.h -- Added file: http://bugs.python.org/file34872/issue17861_v5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17861

[issue21222] Mock create_autospec with name argument fails

2014-04-15 Thread Kushal Das
Kushal Das added the comment: New patchset with changes made as suggested. -- Added file: http://bugs.python.org/file34881/issue21222_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21222

[issue17861] put opcode information in one place

2014-04-15 Thread Kushal Das
Kushal Das added the comment: New patch with changes as suggested by Brett. -- Added file: http://bugs.python.org/file34883/issue17861_v6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17861

[issue21238] unittest.mock.Mock should not allow you to use non-existent assert methods

2014-04-16 Thread Kushal Das
Kushal Das added the comment: Patch with docs and test changes. -- keywords: +patch Added file: http://bugs.python.org/file34912/issue21238.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21238

[issue21256] Sort keyword arguments in mock _format_call_signature

2014-04-16 Thread Kushal Das
Kushal Das added the comment: Patch uploaded for the same. -- keywords: +patch Added file: http://bugs.python.org/file34914/issue21256.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21256

[issue21262] assert_not_called method for mocks

2014-04-16 Thread Kushal Das
Kushal Das added the comment: Patch with required changes. Code, docs, test and Misc/NEWS entry. -- keywords: +patch Added file: http://bugs.python.org/file34921/issue21262.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue21256] Sort keyword arguments in mock _format_call_signature

2014-04-21 Thread Kushal Das
Kushal Das added the comment: New patch with test and news entry. -- Added file: http://bugs.python.org/file34998/issue21256_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21256

[issue21270] unittest.mock.call object has inherited count method

2014-07-08 Thread Kushal Das
Kushal Das added the comment: To start with I am overriding count and index method. Do you think this is enough? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21270

[issue21270] unittest.mock.call object has inherited count method

2014-09-09 Thread Kushal Das
Kushal Das added the comment: Forgot to attach the patch. Includes NEWS entry. Overriden methods count() and index(). -- keywords: +patch Added file: http://bugs.python.org/file36581/issue21270.patch ___ Python tracker rep...@bugs.python.org http

[issue21270] unittest.mock.call object has inherited count method

2014-09-16 Thread Kushal Das
Kushal Das added the comment: Uploading the second version of the patch. -- Added file: http://bugs.python.org/file36630/issue21270_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21270

[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-10-14 Thread Kushal Das
Kushal Das added the comment: I will do that. New job is taking time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21600 ___ ___ Python-bugs

[issue23965] test_ssl failure on Fedora 22

2015-04-15 Thread Kushal Das
New submission from Kushal Das: OpenSSL version openssl-1.0.1k-6.fc22.x86_64 ssl.OPENSSL_VERSION 'OpenSSL 1.0.1k-fips 8 Jan 2015' == ERROR: test_protocol_sslv23 (test.test_ssl.ThreadedTests) Connecting to an SSLv23 server

[issue21271] reset_mock needs parameters to also reset return_value and side_effect

2015-04-14 Thread Kushal Das
Kushal Das added the comment: Updated patch with the suggestions from Berker. -- Added file: http://bugs.python.org/file38989/issue21271v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21271

[issue21271] reset_mock needs parameters to also reset return_value and side_effect

2015-04-12 Thread Kushal Das
Kushal Das added the comment: Working on it. Will submit the patch tomorrow. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21271 ___ ___ Python

  1   2   >