[issue36908] "This module is always available" is confusing

2019-05-17 Thread Kushal Das
Kushal Das added the comment: New changeset 6faad355db6c2bd4a0ade7868f245b42c04f5337 by Kushal Das (Ned Batchelder) in branch 'master': bpo-36908: 'This module is always available' isn't helpful. (#13297) https://github.com/python/cpython/commit/6faad355db6c2bd4a0ade7868f245b42c04f5337

[issue36908] "This module is always available" is confusing

2019-05-17 Thread Kushal Das
Kushal Das added the comment: In future we should do the similar change for any module. This will be helpful for new beginners. -- nosy: +kushal.das ___ Python tracker <https://bugs.python.org/issue36

[issue24758] unittest.mock.Mock's new "unsafe" feature needs a better error message

2019-05-08 Thread Kushal Das
Kushal Das added the comment: New changeset b9b08cd948de97d756a199b60becce8397a8c882 by Kushal Das (Zackery Spytz) in branch 'master': bpo-24758: Improve the error msg for unittest.mock.Mock()'s unsafe mode (#12991) https://github.com/python/cpython/commit

[issue30442] Skip test_xml_etree under coverage

2017-05-24 Thread Kushal Das
Kushal Das added the comment: New changeset 1de4705d00168afa8c5b6741af02e21fc609af58 by Kushal Das in branch 'master': bpo-30442: Skips refcount test in test_xml_etree under coverage (#1767) https://github.com/python/cpython/commit/1de4705d00168afa8c5b6741af02e21fc609af58

[issue30442] Skip test_xml_etree under coverage

2017-05-23 Thread Kushal Das
Changes by Kushal Das <m...@kushaldas.in>: -- pull_requests: +1848 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30442> ___ _

[issue30442] Skip test_xml_etree under coverage

2017-05-23 Thread Kushal Das
New submission from Kushal Das: test test_xml_etree failed -- Traceback (most recent call last): File "/home/travis/build/python/cpython/Lib/test/test_xml_etree.py", line 1553, in test_bug_xmltoolkit63 self.assertEqual(sys.getrefcount(None), count) AssertionError: 522146 != 522

[issue30376] Curses documentation refers to incorrect type

2017-05-23 Thread Kushal Das
Kushal Das added the comment: Thanks for filing the bug, fixed now. Thank you Berker for the quick patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.pytho

[issue30376] Curses documentation refers to incorrect type

2017-05-23 Thread Kushal Das
Kushal Das added the comment: New changeset 9bcf81da1436468c3c5e500ae36678a2ad675e32 by Kushal Das in branch '3.6': [3.6] bpo-30376: Update outdated WindowObject references (GH-1630) (#1746) https://github.com/python/cpython/commit/9bcf81da1436468c3c5e500ae36678a2ad675e32

[issue30376] Curses documentation refers to incorrect type

2017-05-23 Thread Kushal Das
Kushal Das added the comment: New changeset 8af0a214be7c0c921ba5ce5c11043dd5b5da9211 by Kushal Das in branch '3.5': [3.5] bpo-30376: Update outdated WindowObject references (GH-1630) (#1747) https://github.com/python/cpython/commit/8af0a214be7c0c921ba5ce5c11043dd5b5da9211

[issue30376] Curses documentation refers to incorrect type

2017-05-22 Thread Kushal Das
Changes by Kushal Das <m...@kushaldas.in>: -- pull_requests: +1835 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30376> ___ _

[issue30376] Curses documentation refers to incorrect type

2017-05-22 Thread Kushal Das
Changes by Kushal Das <m...@kushaldas.in>: -- pull_requests: +1836 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30376> ___ _

[issue30376] Curses documentation refers to incorrect type

2017-05-22 Thread Kushal Das
Kushal Das added the comment: New changeset 93fc20b73eea3da0b6305aaee951e5dd22d5c408 by Kushal Das (Berker Peksag) in branch 'master': bpo-30376: Update outdated WindowObject references (#1630) https://github.com/python/cpython/commit/93fc20b73eea3da0b6305aaee951e5dd22d5c408 -- nosy

[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Kushal Das
Changes by Kushal Das <m...@kushaldas.in>: -- pull_requests: +1828 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30431> ___ _

[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Kushal Das
Kushal Das added the comment: I am picking this up. -- assignee: -> kushal.das ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.or

[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Kushal Das
Changes by Kushal Das <m...@kushaldas.in>: -- nosy: +kushal.das ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30431> ___ __

[issue28735] Mock is equal to ANY but MagicMock is not

2017-01-20 Thread Kushal Das
Kushal Das added the comment: Now I understood, thanks. I think I should have more coffee before commenting on bugs :) -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28735] Mock is equal to ANY but MagicMock is not

2017-01-20 Thread Kushal Das
Kushal Das added the comment: >From a checkout in last week. Python 3.7.0a0 (default:c163a76163f7, Jan 15 2017, 22:20:24) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information.

[issue29274] Change “tests cases” → “test cases”

2017-01-15 Thread Kushal Das
Kushal Das added the comment: The patch looks good to me. -- nosy: +kushal.das ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28713] Recent tutorial for recent Python3 still uses IOError.

2016-11-16 Thread Kushal Das
Kushal Das added the comment: This following one line change should fix this one. -- keywords: +patch nosy: +kushal.das Added file: http://bugs.python.org/file45504/issue28713.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue28666] Make test.support.rmtree() able to remove non-writable directories

2016-11-14 Thread Kushal Das
Kushal Das added the comment: The patch looks good to me. This can be applied, and tests are running fine with the patch. https://ci.centos.org/job/cPython-build-patch/25/console -- nosy: +kushal.das ___ Python tracker <rep...@bugs.python.

[issue27584] New addition of vSockets to the python socket module

2016-08-11 Thread Kushal Das
Kushal Das added the comment: The patch can be applied, and build successfully. I have ran the current test suite[1]. The two failed tests do not seem to be have anything to do with this patch (read the end of the consoleText output). I think the thing remaining is the new test cases

[issue25548] Show the address in the repr for class objects

2016-07-12 Thread Kushal Das
Kushal Das added the comment: The NEWS file got a typo. Thanks for noticing that. This change did require a lot of updates to the tests. If rest of the people agrees to revert this change, then we should go ahead and do it. Just wondering if Raymond has anything to add

[issue25548] Show the address in the repr for class objects

2016-06-03 Thread Kushal Das
Kushal Das added the comment: Hey Raymond, I am uploading the patch which I almost committed along with whats new update :) I am also reassigning the ticket to you so that you can decide the next steps. -- assignee: kushal.das -> rhettinger Added file: http://bugs.python.org/file43

[issue25548] Show the address in the repr for class objects

2016-06-03 Thread Kushal Das
Kushal Das added the comment: Uploading the new patch with a new test case for the same. -- Added file: http://bugs.python.org/file43151/issue25548v2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue25548] Show the address in the repr for class objects

2016-06-02 Thread Kushal Das
Kushal Das added the comment: Attaching the patch for the same. Had to update the test cases for the following tests to have this behavior as expected. test_functools test_cmd_line_script test_ctypes test_defaultdict test_descr test_descrtut test_doctest test_generators test_genexps

[issue19234] socket.fileno() documentation

2016-06-02 Thread Kushal Das
Kushal Das added the comment: Adds more lines to explain the behavior of socket.fileno() in case of error. -- keywords: +patch nosy: +kushal.das Added file: http://bugs.python.org/file43103/issue19234.patch ___ Python tracker <rep...@bugs.python.

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

2016-06-02 Thread Kushal Das
Kushal Das added the comment: Fixed in https://hg.python.org/cpython/rev/b110dd3d6cea -- status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.or

[issue26323] Add a assert_called() method for mock objects

2016-02-17 Thread Kushal Das
Kushal Das added the comment: Go ahead and update the patch for assert_called_once and related tests. -- nosy: +kushal.das ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue19006] UnitTest docs should have a single list of assertions

2016-01-03 Thread Kushal Das
Kushal Das added the comment: The patch looks good to me. Commit :) -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19006> ___ ___

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

2015-07-13 Thread Kushal Das
Kushal Das added the comment: It is a typing mistake many people make. We just want to catch those as otherwise mock will silently pass those. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21238

[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-14 Thread Kushal Das
Kushal Das added the comment: A patch without NEWS and whatsnew update. I will fill them before commit. The reset_mock function now has two parameters, return_value, and side_effect. Passing True value to any of these will reset that attribute. -- keywords: +patch Added file: http

[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

[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

[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

[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-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

[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

[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

[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

[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

[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-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-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

[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

[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

[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

[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

[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

[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

[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

[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

[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-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

[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

[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

[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

[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

[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

[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

[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-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

[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

  1   2   >