thread/queue bug

2005-01-02 Thread phil
I have a very strange bug. A thread in a .pyc stops dead. This program has many threads and queues and has worked great for months. One thread listens for UDP messages from other programs, and puts the messages in listenq. Procmsgs gets from listenq and for a certain kind of message creates anoth

[issue1866] const arg for PyInt_FromString

2008-01-18 Thread phil
New submission from phil: In PyInt_FromString(), please change the type of the first arg from char * to const char *. That is, of course, if the function indeed does not write to the string. (I took a quick look at the code; it doesn't appear to.) If the function does modify the strin

[issue1866] const arg for PyInt_FromString

2008-01-22 Thread phil
phil added the comment: Oh, all right. Just don't tell my boss -- he thinks I'm doing "real" work. :-) I haven't thoroughly studied the test harness, but it looked like /bin/python /lib/python2.5/test/autotest.py was what I should do? The output generated b

[issue1866] const arg for PyInt_FromString

2008-01-22 Thread phil
Changes by phil: Added file: http://bugs.python.org/file9266/autotest.out.after __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1866> __ ___ Python-bugs-list

[issue1866] const arg for PyInt_FromString

2008-02-12 Thread phil
phil added the comment: Ok. Ran 'make test' before and after patch. Output identical. Attaching output after patch. Added file: http://bugs.python.org/file9417/make_test_after __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue40124] Clearer assertion error

2020-03-31 Thread Phil
New submission from Phil : https://discuss.python.org/t/assertionerror-asyncio-streams-in-drain-helper/3743/4 I recently came across this error, which I now know how to fix. I think the error can be clearer and I've a PR which I think does so. -- components: asyncio messages: 3

[issue40124] Clearer assertion error

2020-03-31 Thread Phil
Change by Phil : -- keywords: +patch pull_requests: +18598 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19240 ___ Python tracker <https://bugs.python.org/issu

[issue43246] Dict copy optimization violates subclass invariant

2021-02-18 Thread Phil
Change by Phil : -- nosy: +pgjones ___ Python tracker <https://bugs.python.org/issue43246> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-29 Thread Phil
New submission from Phil: I had converted some code for a scraper from 2.7.3 to 3.3.0 on Windows 7 and suddenly the code stopped working. Now the https fetch results in: Traceback (most recent call last): File "D:\Users\Phil\Desktop\demo.py", line 67, in page=getWebData()

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-29 Thread Phil
Changes by Phil : Added file: http://bugs.python.org/file27786/py2-filtered.pcapng ___ Python tracker <http://bugs.python.org/issue16361> ___ ___ Python-bugs-list mailin

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-29 Thread Phil
Changes by Phil : Added file: http://bugs.python.org/file27787/py3-filtered.pcapng ___ Python tracker <http://bugs.python.org/issue16361> ___ ___ Python-bugs-list mailin

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-29 Thread Phil
Phil added the comment: You will notice that in the Python 3.3.0 version after packet 54 (Client Hello), there seems to be no response from the server. Today, I was able to verify that the code worked under Python 3.2.3. -- ___ Python tracker <h

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Phil Thompson
New submission from Phil Thompson : In Python v3.2b1 the type of the first argument of PySlice_GetIndices() and PySlice_GetIndicesEx() has changed from PySliceObject* to PyObject*. The documentation does not reflect this change. Which is correct, the source code or the documentation

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Phil Thompson
Phil Thompson added the comment: You might want to add a "Changed in Python v3.2" because as it is an incompatible change. -- ___ Python tracker <http://bugs.python.o

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Phil Thompson
Phil Thompson added the comment: It's source level incompatible - my extension modules compiled fine with v3.2a but failed with v3.2b1. -- ___ Python tracker <http://bugs.python.org/is

[issue32092] mock.patch with autospec does not consume self / cls argument

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue32092> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38091] Import deadlock detection causes deadlock

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue38091> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30587] Mock with spec object does not ensure method call signatures

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue30587> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7897] Support parametrized tests in unittest

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue7897> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38122] AsyncMock force always creating an AsyncMock for child mocks

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue38122> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38384] An assertion failure in test_pickle

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue38384> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18108] shutil.chown should support dir_fd and follow_symlinks keyword arguments

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue18108> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38494] Add assert_not_called_with

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue38494> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue23882> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37052] Add examples for mocking async for and async context manager in unittest.mock docs

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue37052> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38505] Mock.call_args and Mock.call_args_list not propagated to parent Mock

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue38505> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25299] argparse: TypeError: __init__() takes at least 4 arguments (4 given)

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue25299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35617] unittest discover does not work with implicit namespaces

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue35617> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue25597> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36723] Unittest Discovery for namespace subpackages dot notation fails

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue36723> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44492] Building a C extension on Big Sur and SDK v10.15 fails

2021-06-22 Thread Phil Thompson
New submission from Phil Thompson : I am running macOS v11 (Big Sur) and using Xcode v12.1 (because this is the latest that includes SDK v10.15 rather than v11) to build a C extension. I'm using the older SDK because of 3rd party libraries that are not tested against the newer SDK.

[issue44492] Building a C extension on Big Sur and SDK v10.15 fails

2021-06-23 Thread Phil Thompson
Phil Thompson added the comment: Another aspect of this is when building a Python v3.10 C extension on macOS v10.15 (Catalina) with SDK 10.15, the wheel has the 'universal2' platform tag when it actually only contains an x86_64 impl

[issue44548] ttk Indeterminate Progressbar Not Animating Correctly After `start`

2021-07-01 Thread Phil Soucheray
New submission from Phil Soucheray : After running `start` on an indeterminate Progressbar, it animates to one side, goes back to the other and then right before it reaches the end it disappears. I've attached a sample script below and a screen recording. This is running on macOS 11.

[issue44548] ttk Indeterminate Progressbar Not Animating Correctly After `start`

2021-07-01 Thread Phil Soucheray
Phil Soucheray added the comment: It looks like that has done the trick. Is there an expected time when there won't be different installers? -- ___ Python tracker <https://bugs.python.org/is

[issue44492] Building a C extension on Big Sur and SDK v10.15 fails

2021-09-09 Thread Phil Thompson
Phil Thompson added the comment: Is this likely to be fixed for v3.10? At the very least a wheel should have the correct platform tag. -- ___ Python tracker <https://bugs.python.org/issue44

[issue38778] Document that os.fork is not allowed in subinterpreters

2019-11-12 Thread Phil Connell
New submission from Phil Connell : Add a comment to the os.fork docs to note that forking from a subinterpreter is no longer allowed (see issue34651) -- assignee: docs@python components: Documentation messages: 356459 nosy: docs@python, eric.snow, pconnell priority: normal severity

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-11-12 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker <https://bugs.python.org/issue33608> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-11-21 Thread Phil Connell
Phil Connell added the comment: Based on Victor's info from https://bugs.python.org/issue36114#msg337090 I believe the crash is essentially what's reproduced in the attached program. >From the root of a (built) cpython clone run: gcc -c -o fini_crash.o -IInclude -I. fini_cras

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-11-21 Thread Phil Connell
Phil Connell added the comment: Just to summarise, I'm fairly sure this is exactly what Victor saw: a daemon thread attempts to reacquire the GIL via Py_END_ALLOW_THREADS after interpreter finalisation. Obviously the threadstate pointer held by the thread is then invalid...so we crash

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-11-21 Thread Phil Connell
Phil Connell added the comment: The attached patch (wrap_threadstate.diff) is enough to stop the crash. It's a slightly dirty proof-of-concept, but equally could be the basis for a solution. The main functional issue is that there's still a race on the Py_BLOCK_THREADS side: it&

[issue41376] site.getusersitepackages() incorrectly claims that PYTHONNOUSERSITE is respected

2020-07-23 Thread Phil Elson
New submission from Phil Elson : The documentation for site.getusersitepackages() states at https://docs.python.org/3.10/library/site.html#site.getusersitepackages: Return the path of the user-specific site-packages directory, USER_SITE. If it is not initialized yet, this function will also

[issue41376] site.getusersitepackages() incorrectly claims that PYTHONNOUSERSITE is respected

2020-07-23 Thread Phil Elson
Change by Phil Elson : -- keywords: +patch pull_requests: +20740 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21602 ___ Python tracker <https://bugs.python.org/issu

[issue14905] zipimport needs to support namespace packages when no 'directory' entry exists

2020-08-13 Thread Phil Connell
Phil Connell added the comment: One version of the bug described here (and fixed in the old implementation under issue17633) exists in the Python implementation of zipimport: $ unzip -l namespace1.zip Archive: namespace1.zip Length DateTimeName

[issue14246] Accelerated ETree XMLParser cannot handle io.StringIO

2012-03-10 Thread Phil Thompson
New submission from Phil Thompson : The old unaccelerated ETree XMLParser accepts input from a io.StringIO, but the accelerated version does not. Any code that relies on this is broken by Python v3.3. -- components: XML messages: 155301 nosy: philthompson10 priority: normal severity

[issue14246] Accelerated ETree XMLParser cannot handle io.StringIO

2012-03-10 Thread Phil Thompson
Phil Thompson added the comment: This variation of your test doesn't... --- import io from xml.etree.ElementTree import parse stream = io.StringIO() stream.write(''' ''') stream.seek(0) p

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-05 Thread Phil Frost
New submission from Phil Frost : We've observed instances of Decimal divisions being incorrect a few times per day in a web application serving millions of requests daily. I've been unable to reproduce the issue but have been investigating core dumps which suggest either some issu

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-05 Thread Phil Frost
Phil Frost added the comment: I should note that while we do observe this issue with Decimal, my troubleshooting so far indicates the logic in decimal.py is fine. It seems instead the instructions in decimal.py aren't being correctly executed. I'm not sure if the problem is limit

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-06 Thread Phil Frost
Phil Frost added the comment: skrah: Yes, that's correct. Since I can only produce this bug in production it will take me some days to build and validate a source build. But absent any better ideas, I will try. tim.peters: I've observed this bug across hundreds of EC2 hosts, in

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-06 Thread Phil Frost
Phil Frost added the comment: > Alpine Linux apparently uses musl. Is that well supported and tested? Heh. Not really. Switching to a Debian container is probably just about as much work as building Python from source. Would that be prefera

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-06 Thread Phil Frost
Phil Frost added the comment: So this is uminteresting (gdb) p small_ints[0] $2 = (PyIntObject *) 0x558ce65df528 (gdb) p *small_ints[0] $3 = {ob_refcnt = 18, ob_type = 0x7fe019b694c0 , ob_ival = -5} (gdb) p *small_ints[1] $4 = {ob_refcnt = 65, ob_type = 0x7fe019b694c0 , ob_ival = -3

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-06 Thread Phil Frost
Phil Frost added the comment: Probably too many C extensions to feasibly audit them all. Also we can't rule out something busted in Alpine. So I'm going to set a watchpoint on small_ints[1]->ob_ival with a little gdb script to dump core right when it changes; hopefully in

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-07 Thread Phil Frost
Phil Frost added the comment: I'm afraid that won't be of much use since the object is statically allocated. Besides, the trouble isn't finding what created the object, but what mutated an int object which should be immutable. -- ___

[issue37356] Name of 64-bit OpenSSL v1.1.1 DLLs

2019-06-20 Thread Phil Thompson
New submission from Phil Thompson : In the 3.8b1 64-bit Windows installer the names of the OpenSSL DLLs do not have the -x64 suffix which seems to be the convention (and is the default when building OpenSSL from source). The convention is followed in the 3.7.0 to 3.7.3 installers. I haven&#

[issue37356] Name of 64-bit OpenSSL v1.1.1 DLLs

2019-06-21 Thread Phil Thompson
Phil Thompson added the comment: I think I was incorrect in saying the suffix was the default when building v1.1.1 from source, so any problem I have (trying to share the DLL with different pre-built packages) is not a Python problem. Sorry for the noise. -- resolution: -> no

[issue37356] Name of 64-bit OpenSSL v1.1.1 DLLs

2019-06-21 Thread Phil Thompson
Phil Thompson added the comment: A clarification... It seems the suffix is added when configured as VC-WIN64A but omitted when configured as VC-WIN64A-masm. ...still not a Python problem. -- ___ Python tracker <https://bugs.python.

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-07-10 Thread Phil Frost
Phil Frost added the comment: Not yet. I had a hell of a time getting gdb to follow gunicorn forks so it would watch the workers but not also every other thing using popen or os.system(). And the lldb package on Alpine doesn't seem to work. So we're currently in the process of

[issue37588] Py_DEPRECATED and unavoidable warnings

2019-07-13 Thread Phil Thompson
New submission from Phil Thompson : I have a number of static PyTypeObject declarations. In order to avoid compiler warnings about missing field initialisers I always provide explicit 0 values for unused fields (protected by #if PY_HEX_VERSION >= ...). However with v3.8b2 this triggers

[issue37588] Py_DEPRECATED and unavoidable warnings

2019-07-19 Thread Phil Thompson
Phil Thompson added the comment: I am not "touching" tp_print. I am simply defining it as 0 to avoid the missing initialiser warning. My point is that it should be possible to write code that doesn't trigger warnings (whether or not yo

[issue37588] Py_DEPRECATED and unavoidable warnings

2019-07-19 Thread Phil Thompson
Phil Thompson added the comment: On 19/07/2019 11:37, Jeroen Demeyer wrote: > Jeroen Demeyer added the comment: > >> We have some reserved/deprecated/unused fields. Setting 0 to them >> makes forward incompatible code. > > Good point. tp_print is removed in 3.9 Wh

[issue37588] Py_DEPRECATED and unavoidable warnings

2019-07-19 Thread Phil Thompson
Phil Thompson added the comment: >> Which is why I protect the initialisation with #if PY_VERSION_HEX < > 0x0309 > > It is your specific case. We can not assume people do it, or even you > never forget it. So this is not the "right thing" we can recommen

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-01-27 Thread Phil Kang
New submission from Phil Kang : ConfigParser calls ConfigParser.optionxform twice per each key when assigning a dictionary to a section. The following code: ini = configparser.ConfigParser() ini.optionxform = lambda x: '(' + x + ')' # Bugged ini[&#

[issue35910] Curious problem with my choice of variables

2019-02-06 Thread Phil Dream
New submission from Phil Dream : Firstable I am not a software expert just a hobby user so please be indulgent I use a Raspberry Pi3B+ with raspbian lite and Python 3.5.3 In my script, I need 2 nested "while" loops so I chose two variables to incriment them 'i' and j. Th

[issue35910] Curious problem with my choice of variables

2019-02-06 Thread Phil Dream
Phil Dream added the comment: OK, I am sorry I didn’t know Best regards De : Stéphane Wirtel Envoyé le :mercredi 6 février 2019 11:10 À : philsdr...@gmail.com Objet :[issue35910] Curious problem with my choice of variables Stéphane Wirtel added the comment: Hi Phil, This bug tracker is

[issue35910] Curious problem with my choice of variables

2019-02-06 Thread Phil Dream
Phil Dream added the comment: OK, I am sorry I didn’t know Thanks for the advice Best regards De : Rémi Lapeyre Envoyé le :mercredi 6 février 2019 11:07 À : philsdr...@gmail.com Objet :[issue35910] Curious problem with my choice of variables Rémi Lapeyre added the comment: Hi @Phil Dream

[issue32141] configure with Spaces in Directory Name on macOS

2017-11-26 Thread Phil Thompson
New submission from Phil Thompson : When configure searches for a C compiler on macOS it fails to handle spaces in directory name on PATH. The fix is to enclose $as_dir in quotes. -- components: Build messages: 307004 nosy: philthompson10 priority: normal severity: normal status: open

[issue18032] set methods should specify whether they consume iterators "lazily"

2013-05-25 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker <http://bugs.python.org/issue18032> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18033] Example for Profile Module shows incorrect method

2013-05-25 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker <http://bugs.python.org/issue18033> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18035] telnetlib incorrectly assumes that select.error has an errno attribute

2013-05-25 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker <http://bugs.python.org/issue18035> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18036] "How do I create a .pyc file?" FAQ entry is out of date

2013-05-25 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker <http://bugs.python.org/issue18036> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18043] No mention of `match.regs` in `re` documentation

2013-05-25 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker <http://bugs.python.org/issue18043> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18042] Provide enum.unique class decorator

2013-05-25 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker <http://bugs.python.org/issue18042> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18047] Descriptors get invoked in old-style objects and classes

2013-05-25 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker <http://bugs.python.org/issue18047> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-05-30 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker <http://bugs.python.org/issue17792> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18111] Add a default argument to min & max

2013-06-08 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker <http://bugs.python.org/issue18111> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18112] PEP 442 implementation

2013-06-08 Thread Phil Connell
Changes by Phil Connell : -- nosy: +isoschiz, pconnell ___ Python tracker <http://bugs.python.org/issue18112> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18129] Fatal Python error: Cannot recover from stack overflow.

2013-06-08 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker <http://bugs.python.org/issue18129> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18208] Wrong bytecode generated for 'in' operation

2013-06-14 Thread Phil Connell
New submission from Phil Connell: The following two expressions should have the same value: Python 3.4.0a0 (default:fae92309c3be, Jun 14 2013, 09:29:54) [GCC 4.8.0] on linux Type "help", "copyright", "credits" or "license" for more information.

[issue18213] py-bt errors on backtrace

2013-06-14 Thread Phil Muldoon
New submission from Phil Muldoon: (gdb) py-bt #2 Frame 0xef8180, for file , line 1, in () Python Exception (2, 'No such file or directory', ''): Error occurred in Python command: (2, 'No such file or directory', '') This is the actual raw frame

[issue18208] Wrong bytecode generated for 'in' operation

2013-06-14 Thread Phil Connell
Phil Connell added the comment: Thanks Amaury. That's quite surprising, but I wouldn't advocate changing such long standing behaviour. I'm closing the issue. -- status: pending -> closed ___ Python tracker <http://bugs.

[issue18213] py-bt errors on backtrace with PyRun_SimpleString and friends

2013-06-14 Thread Phil Muldoon
Phil Muldoon added the comment: Yes I did truncate the output, the backtrace was very long. This is my scenario: gdb --args ./gdb When the superior gdb loads, I did: (top-gdb) b frapy_pc (top-gdb) run In the inferior gdb, I did: (gdb) start (gdb) py g = gdb.selected_frame() (gdb) py print

[issue18103] Create a GUI test framework for Idle

2013-06-17 Thread Phil Webster
Changes by Phil Webster : -- nosy: +philwebster ___ Python tracker <http://bugs.python.org/issue18103> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
New submission from Phil Webster: This is a single test for RstripExtension.py, following from #15392. I also added a mock EditorWindow module with a Text widget for testing. test_rstripextension.py seems to run fine inside IDLE and produces the following output: >>> test_

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
Changes by Phil Webster : -- nosy: +Todd.Rovito ___ Python tracker <http://bugs.python.org/issue18279> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
Changes by Phil Webster : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue18279> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
Changes by Phil Webster : -- keywords: +patch Added file: http://bugs.python.org/file30664/test_rstripext.patch ___ Python tracker <http://bugs.python.org/issue18

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
Phil Webster added the comment: Thank you for the feedback Terry. I'm not seeing the traceback without '-ugui' either, so I'm going to look into that. I get the same results with requires('gui') moved inside of setUp, is that what you mean by wrapping? For mock_

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-24 Thread Phil Webster
Phil Webster added the comment: Modified the first patch to get rid of mock EditorWindow in favor of the real thing. Also renamed the test to 'test_rstrip'. -- Added file: http://bugs.python.org/file30694/test_rstrip.patch ___ Python trac

[issue18292] IDLE Improvements: Unit test for AutoExpand.py

2013-06-29 Thread Phil Webster
Changes by Phil Webster : -- nosy: +philwebster ___ Python tracker <http://bugs.python.org/issue18292> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18226] IDLE Unit test for FormatParagrah.py

2013-07-01 Thread Phil Webster
Phil Webster added the comment: I'm not sure if this is worth pursuing, but I made a mock Text Widget that behaves more like an actual Text Widget. I've attached my modified mock_tk.py which I used to create a mock editor window. This works for the test I made in #18279, but I am al

[issue18279] IDLE Unit test for RstripExtension.py

2013-07-04 Thread Phil Webster
Phil Webster added the comment: Added to Terry's Text Widget code (in #18226) and created mock_idle.py for the mock EditorWindow. Todd's FormatParagraph test in the aforementioned issue also passes with the mock EditorWindow. -- Added file: http://bugs.python.org

[issue18226] IDLE Unit test for FormatParagrah.py

2013-07-07 Thread Phil Webster
Phil Webster added the comment: I made slight modifications to Todd's initial patch to test the mock Text widget from #18365. Thank you for the helpful feedback Terry! -- Added file: http://bugs.python.org/file30853/18226IDLEUnitTestFormatParagraph2.

[issue18365] Idle: mock Text class and test thereof

2013-07-07 Thread Phil Webster
Phil Webster added the comment: Added Text class to mock_tk.py and GUI/non-GUI tests in test_text.py. Running the IDLE tests produced no errors for me. -- keywords: +patch Added file: http://bugs.python.org/file30851/mock_text.patch ___ Python

[issue18279] IDLE Unit test for RstripExtension.py

2013-07-07 Thread Phil Webster
Phil Webster added the comment: This patch contains mock_idle.py and the rstrip test using the mock text widget from #18365. Terry- For some reason, the Text widget always contains a '\n' as the last character even when there is nothing visible. Doing a text.get('1.0',

[issue18409] IDLE Improvements: Unit test for AutoComplete.py

2013-07-08 Thread Phil Webster
New submission from Phil Webster: I've started writing this test which depends on #18365. -- components: IDLE messages: 192711 nosy: JayKrish, Todd.Rovito, philwebster, terry.reedy priority: normal severity: normal status: open title: IDLE Improvements: Unit test for AutoComple

[issue18410] IDLE Improvements: Unit test for SearchDialog.py

2013-07-08 Thread Phil Webster
New submission from Phil Webster: Continuing the IDLE unittest framework from #15392. Depends on #18365. -- components: IDLE messages: 192713 nosy: JayKrish, Todd.Rovito, philwebster, terry.reedy priority: normal severity: normal status: open title: IDLE Improvements: Unit test for

[issue18425] IDLE Unit test for IdleHistory.py

2013-07-10 Thread Phil Webster
Changes by Phil Webster : -- nosy: +philwebster ___ Python tracker <http://bugs.python.org/issue18425> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18365] Idle: mock Text class and test thereof

2013-07-11 Thread Phil Webster
Phil Webster added the comment: Thanks Terry, I will start PEP8-checking my code before I submit (as well as testing more thoroughly). I was thinking the same thing about the logic behind _decode and index functions needing to be combined. How would you recommend adding functionality to the

[issue18365] Idle: mock Text class and test thereof

2013-07-12 Thread Phil Webster
Phil Webster added the comment: Using tk.Text for more involved tests sounds good (at least as a start). The pass functions were used to get the FormatParagraph test (#18226) working. I've been using the same effbot.org site as a reference and haven't found anything mor

[issue18226] IDLE Unit test for FormatParagrah.py

2013-07-17 Thread Phil Webster
Phil Webster added the comment: Added tests for FormatParagraph using single/multiline comment blocks and single/multiline strings in the mock editor window. Here is a summary of the changes: FormatParagraph.py - description for format_paragraph_event - modified so that selecting a long

[issue18226] IDLE Unit test for FormatParagrah.py

2013-07-17 Thread Phil Webster
Phil Webster added the comment: After reading Terry's comments on the initial patch I turned FormatParagraph's initial comments into a docstring and made sure that all lines were < 80 characters. -- Added file: http://bugs.python.org/file30960/18226IDLEUnitTestFormatPar

  1   2   3   >