[issue13447] Add tests for some scripts in Tools/scripts

2012-02-20 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: +1 while working on #issue14053 I missed the test for the scripts (in this case some kind of mocking is needed). -- ___ Python tracker <http://bugs.python.org/issue13

[issue14053] Make patchcheck work with MQ

2012-02-20 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Updated. Interesting: I saw that repetition but due “[…] Ideally, it should distinguish between this and other errors by checking the subprocess's stderr, so that if a different error occurs, we can still print out the error message. […]” I

[issue14053] Make patchcheck work with MQ

2012-02-21 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Ok! I haven't added NEWS as I thing is easier for the person that applies the patch to simply write the line directly there instead of merging. Is that ok? let me know if something has to be improved. Thanks again for your mentoring

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-22 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: > My only concern is communication: how do we tell people working on a tool > that they should write a test in test_tools? I’m not sure they would read > Tools/README; maybe a note at the top of the Python files would work; a note > in

[issue14019] Unify tests for str.format and string.Formatter

2012-02-22 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: I have some questions about this: 1) In Lib/test/string_tests.py it says: “Common tests shared by test_str, test_unicode, test_userstring and test_string” but a) I cannot find test_str b) string is imported and only some constants

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Hi Éric, some questions: 1)if test_tools is going to be the test for all the Tools (at least until it grows to much), shoudn't be be module doc something like “””Tests for scripts in Tools/**“”” 2)is the SkipTest “reindent” specific? C

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Sorry, my fault: I meant "Test for Tools" instead of """Tests for reindent.py.""" (Im not talking about the skip message but the test documentation or the first line 0,0...) -- _

[issue12659] Add tests for packaging.tests.support

2012-02-29 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Patch updated. BTW, I didn't get any email due the review that Éric did (does one has to be registered? I've done that now). -- Added file: http://bugs.python.org/file24689/issue12659_434cd2fe

[issue12659] Add tests for packaging.tests.support

2012-02-29 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: > Patch looks good, thanks! BTW are you running a coverage tool to see > how > far along we are? Yes, always. The classes tested in that patch are at 100%. The overall coverage is: Name Stmts Miss Cover

[issue12659] Add tests for packaging.tests.support

2012-03-03 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: I've updated the patch with a test case for 'create_distribution' and one minor rename. I personally don't like too much the structure of 'LoggingCatcherTestCase' so improvements are welcome. Cheers, franci

[issue14183] Test coverage for lib/packaging.install and lib/packaging/pypi/wrapper

2012-03-03 Thread Francisco Martín Brugué
New submission from Francisco Martín Brugué : I've added a test to Lib/packaging/tests/test_install.py to increase the line test coverage of lib/packaging.install (and lib/packaging/pypi/wrapper indirectly from 14% to 80%). -- components: Tests

[issue14183] Test coverage for lib/packaging.install and lib/packaging/pypi/wrapper

2012-03-03 Thread Francisco Martín Brugué
Changes by Francisco Martín Brugué : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue14183> ___ ___ Python-bugs-list mailing list Un

[issue14183] Test coverage for packaging.install and packaging.pypi.wrapper

2012-03-03 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Hi Éric, > - # Test that the isntalled raises an exception if the project does not > + # Test that the installed raises an exception if the project does not > It took me many seconds to find the change :) The editor told me :) >

[issue14183] Test coverage for packaging.install and packaging.pypi.wrapper

2012-03-03 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Nadeem: > - Don't use spaces around the '=' sign when used to indicate a > keyword argument or a default parameter value. ok, "code formating" is not working as expected (at least for lambdas...) Éric : > If you

[issue14183] Test coverage for packaging.install and packaging.pypi.wrapper

2012-03-04 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: I've updated the patch. Let me know if something has to be changed. -- Added file: http://bugs.python.org/file24727/issue14183_fbb9847b8f43.patch ___ Python tracker <http://bugs.python.org/is

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-03-17 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: > However, I have not actually applied and run test_string.py. I've applied the issue13579_4720cc9e.patch to the changeset 0554183066b5 and applies without errors for me. -- ___ Python tracke

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-03-17 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Ok, I've updated the patch. The NEWS entry could be: Issue #13579: string.Formatter now understands the !a conversion specifier. (not in the patch because AFAIN it makes the merge easier) Let me know if that's in the line you want.

[issue14264] Comparison bug in distutils2.version

2013-06-23 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: What the status of this issue?: the changeset http://hg.python.org/distutils2/rev/1e0ca4594a2a mentioned in msg155480 seems to add tests (but it hasn't been add to the issue explicitly). Can the issue be closed? -- nosy: +fran

[issue18288] Idle 2.7: Run Module does not set __file__

2013-06-23 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: On Debian: * Command line 2.7.3 ~/Prog/mypy$ python2.7 tem2.py tem2.py ~/Prog/mypy$ python2.7 -m tem2 /home/ci/Prog/mypy/tem2.py * IDLE 2.7.3 >>> print(__file__) Traceback (most recent call last): File "", line 1, in

[issue18288] Idle 2.7: Run Module does not set __file__

2013-06-23 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: >From Idle editor window (F5): >>> Traceback (most recent call last): File "/home/ci/Prog/mypy/tem2.py", line 1, in print(__file__) NameError: name '__file__' is not defined >>> -- _

[issue13579] string.Formatter doesn't understand the a conversion specifier

2012-04-30 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: The patch is updated. Please let me know. And as Éric noticed the NEWS entry could be: Issue #13579: string.Formatter now understands the "a" conversion specifier. Thanks! -- Added file: http://bugs.python.org

[issue14466] Rip out mq instructions

2012-04-30 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Just for the record: Thanks to the old mq workflow in the devguide I've learned about them and I'm now using it all the time to send and manage the patches. The only thing is that one should first use the “qqueue” functionality (see “hg h

[issue5765] stack overflow evaluating eval("()" * 30000)

2012-08-19 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Just curiosity: how relate the magic numbers 10 and 2000 in test_compiler_recursion_limit to recursion_depth and recursion_limit Thanks! -- nosy: +francismb ___ Python tracker <http://bugs.python.

[issue13990] Benchmarks: 2to3 failures on the py3 side

2012-09-13 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Just info: I still can reproduce that. (It's maybe just something wrong with my setup?) -- Added file: http://bugs.python.org/file27183/testsResult.txt ___ Python tracker <http://bugs.python.org/is

[issue13990] Benchmarks: 2to3 failures on the py3 side

2012-09-13 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: The actual tip for me is: ci@random:~/Prog/cpython/benchmarks/py2$ hg tip changeset: 164:61768f86170c tag: tip user:Brett Cannon date:Fri Aug 31 18:58:24 2012 -0400 summary: Allow for the specification of a base directory

[issue13990] Benchmarks: 2to3 failures on the py3 side

2012-09-13 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: The box is a debian (wheezy): ci@random:~/Prog/cpython/benchmarks/py2$ uname -a Linux random 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64 GNU/Linux The source repository dir: ci@random:~/Prog/cpython/benchmarks/py2$ dir lib LICENSE.txt

[issue13990] Benchmarks: 2to3 failures on the py3 side

2012-09-13 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: > So the tests failed but the benchmarks finished without issue? Yes. But the apparent diff is that I've used 2.6.8 If the benchmarks run without errors then I'm satisfied, else we figure out what this fails ever or we have a already tr

[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-05 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: I've to say that I also ran into that by following coverage numbers and as a newbie is not so easy to see what Raymond told. IMHO that information could be put as a comment. Regards francis -- nosy: +fran

[issue6839] zipfile can't extract file

2014-04-30 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: A small question related to: "zipfile_276_filename_mismatch_v3.patch" --- a/zipfile.pyWed Apr 30 11:44:38 2014 +++ b/zipfile.pyWed Apr 30 15:10:38 2014 @@ -970,10 +970,10 @@ if fheader[_FH_EXTRA_FI

[issue14019] Unify tests for str.format and string.Formatter

2014-05-02 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: The formatter module was deprecated in Python 3.4 and is scheduled for removal in Python 3.6. See [1] and [2]. --- [1] https://docs.python.org/3/library/formatter.html#module-formatter [2] https://docs.python.org/3/whatsnew/3.4.html#deprecated

[issue21422] int << 0: return the number unmodified

2014-05-12 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Hi, sorry if it's trivial but shouldn't we add a 'shifted_true' test some were to make sure that this behavior change gets noticed next time? def test_shifted_true(self): self.assertEqual(True << 0, 1) sel

[issue21422] int << 0: return the number unmodified

2014-05-12 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: I Victor you were so fast, I started with one patch also in bool (at least the place was right). The problem is that I was getting some extrage (for me at least). As far I hat: def test_shifted_true(self): with self.assertRaises

[issue21422] int << 0: return the number unmodified

2014-05-13 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: > > What we want to test is that the return value is of type 'int', which is what > Victor's test checks. > Thank you for the explanations! for 2.7.6 type(2 << 62) is and type(2 << 61) is (I suppose it's

[issue19626] test_email and Lib/email/_policybase.py failures with -OO

2013-11-19 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Actual tip: changeset: 87276:2012e85638d9 date: Tue Nov 19 11:43:38 2013 -0800 It's a fresh clone, then: make clean ./configure --with-pydebug make -j4 ./python -OO -m test -v test_email == CPython 3.4.0a4+ (default:2012e85638d9, Nov 19 2013, 22:

[issue19626] test_email and Lib/email/_policybase.py failures with -OO

2013-11-19 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: small correction: a fresh clone, then: ./configure --with-pydebug make -j4 ./python -OO -m test -v test_email -- ___ Python tracker <http://bugs.python.org/issue19

[issue19866] tests aifc, sunau and wave failures on a fresh Win64 installation

2013-12-02 Thread Francisco Martín Brugué
New submission from Francisco Martín Brugué: I've just installed Cpython 2.7.6 32bit on Windows64, run the tests [1] and some of them failed. Some of them seems related to audiodata not beeing installed. .\python.exe Lib\test\regrtest.py -v == CPython 2.7.6 (default, Nov 10 2013, 19:

[issue19866] tests aifc, sunau and wave failures on a fresh Win64 installation

2013-12-02 Thread Francisco Martín Brugué
Changes by Francisco Martín Brugué : Added file: http://bugs.python.org/file32942/failed_test_sunau.txt ___ Python tracker <http://bugs.python.org/issue19866> ___ ___

[issue19866] tests aifc, sunau and wave failures on a fresh Win64 installation

2013-12-02 Thread Francisco Martín Brugué
Changes by Francisco Martín Brugué : Added file: http://bugs.python.org/file32943/failed_test_wave.txt ___ Python tracker <http://bugs.python.org/issue19866> ___ ___ Pytho

[issue19866] tests aifc, sunau and wave failures on a fresh Win64 installation

2013-12-04 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: On 12/03/2013 07:21 PM, Zachary Ware wrote: > > Zachary Ware added the comment: > > Francis, would you like to work on a patch for this? The change should go in > Tools/msi/msi.py, if I

[issue19904] Add 128-bit integer support to struct

2013-12-08 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: > If performance is the reason for the feature: My impression is that > the goal of the struct module is not necessarily top performance. I'm not sure if it applies but on #19905 (message 205345 [1]) is said its a dependency for that iss

[issue19856] Possible bug in shutil.move() on Windows

2013-12-08 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Just feedback on windows7. I tried the tests inside IDLE and done 'Run Module' (F5) (deleting the directories between tests): test_A: import os, shutil os.makedirs('foo') os.makedirs('bar/boo') shutil.move('foo/&#x

[issue1602742] itemconfigure returns incorrect text property of text items

2014-07-06 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Hi, just a question: the status of this issue is pending but it seems to be already resolved/duplicated. Means that this issue can be closed? Thansk in advance! -- nosy: +francismb status: pending -> o

[issue19856] shutil.move() can't move a directory in non-empty directory on Windows

2014-02-10 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: First I've reviewed #msg205585 again (no patch applied). Notice that Traceback was not accurate: test_A: >>> os.makedirs('foo') >>> os.makedirs('bar/foo') >>> shutil.move('foo/', &#x

[issue19856] shutil.move() can't move a directory in non-empty directory on Windows

2014-02-10 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: I've applied the patch manually to 2.7. Then I've done the tests again (notice test_A traceback): test_A: >>> import os, shutil >>> os.makedirs('foo') >>> os.makedirs('bar/foo') >>

[issue19856] shutil.move() can't move a directory in non-empty directory on Windows

2014-02-10 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: And finally the test runs: 1) The original. No new tests, no new patch. == CPython 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] == Windows-7-6.1.7601-SP1 little-endian == c:\users\brugue\appdata\local\temp\test_python_5444

[issue17267] datetime.time support for '+' and 'now'

2013-03-02 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Hi Joar, just a detail: is there a reason for the asymmetric check for timedelta isinstance (and raising NotImplemented)? And BTW. isn't a double check for the __sub__ case (or have I missed something)? +def __add__(self, other): +&

[issue15392] Create a unittest framework for IDLE

2013-03-22 Thread Francisco Martín Brugué
Changes by Francisco Martín Brugué : -- nosy: +francismb ___ Python tracker <http://bugs.python.org/issue15392> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2013-03-23 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Hi Terry, just take/put away some ... (they're not in a special order nor preference, just some that could 'see' in the browser). -- keywords: +patch nosy: +francismb Added file: http://bugs.python.org/file29553/i

[issue7267] format method: c presentation type broken

2013-03-23 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: In 2.7.3 >>> >>> u'{0:c}'.format(127) u'\x7f' >>> u'{0:c}'.format(128) Traceback (most recent call last): File "", line 1, in u'{0:c}'.format(128) UnicodeDecodeErr

[issue7267] format method: c presentation type broken

2013-03-23 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Adding a test that triggers the issue, let me know if is enough. -- keywords: +patch Added file: http://bugs.python.org/file29554/issue7267.patch ___ Python tracker <http://bugs.python.org/issue7

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Francisco Fernández Castaño
New submission from Francisco Fernández Castaño: >From the code example at >https://docs.python.org/3/library/contextlib.html#contextlib.ContextDecorator "logging.info('Entering: {}'.format(name)) NameError: name 'name' is not defined" nam

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Francisco Fernández Castaño
Francisco Fernández Castaño added the comment: Under Fernández it's ok. -- ___ Python tracker <http://bugs.python.org/issue22603> ___ ___ Python-bugs-list m

[issue46908] Debugger jumps to a wrong instruction in for loop

2022-03-03 Thread Francisco Arenas Afán de Rivera
New submission from Francisco Arenas Afán de Rivera : I found that the debugger doesn't follow the normal program order when executing a foor loop with more than 3 instructions inside and one loop. code example: a = 0 b = 0 c = 0 for i in range(1): a += 1 b += 1 # Set breakpoint

[issue19084] No way to use TLS-PSK from python ssl

2015-09-23 Thread Luiz Francisco Artigas de Prá
Changes by Luiz Francisco Artigas de Prá : -- nosy: +Luiz Francisco Artigas de Prá ___ Python tracker <http://bugs.python.org/issue19084> ___ ___ Python-bug

<    1   2