summaryrefslogtreecommitdiff
path: root/Lib/test/test_tcl.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.10] bpo-45229: Remove test_main in many tests (GH-28405) (GH-28455)Serhiy Storchaka2021-09-191-4/+1
| | | | | | | | | | | Instead of explicitly enumerate test classes for run_unittest() use the unittest ability to discover tests. This also makes these tests discoverable and runnable with unittest. load_tests() can be used for dynamic generating tests and adding doctests. setUpModule(), tearDownModule() and addModuleCleanup() can be used for running code before and after all module tests. (cherry picked from commit 40348acc180580371d25f75f46b27048e35f2435)
* bpo-44608: Fix memory leak in _tkinter._flatten() (GH-27107)Miss Islington (bot)2021-07-131-1/+7
| | | | | | if it is called with a sequence or set, but not list or tuple. (cherry picked from commit f572cbf1faab33d9afbbe3e95738ed6fbe6e48e6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-43916: Use test.support.check_disallow_instantiation() in test_tcl ↵Miss Islington (bot)2021-06-241-3/+3
| | | | | | | (GH-26412) (GH-26888) (cherry picked from commit e90e0422182f4ca7faefd19c629f84aebb34e2ee) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-43916: Apply Py_TPFLAGS_DISALLOW_INSTANTIATION to selected types (GH-25748)Erlend Egeberg Aasland2021-04-301-0/+3
| | | | | | | | | | | | | | | | | | | | | Apply Py_TPFLAGS_DISALLOW_INSTANTIATION to the following types: * _dbm.dbm * _gdbm.gdbm * _multibytecodec.MultibyteCodec * _sre..SRE_Scanner * _thread._localdummy * _thread.lock * _winapi.Overlapped * array.arrayiterator * functools.KeyWrapper * functools._lru_list_elem * pyexpat.xmlparser * re.Match * re.Pattern * unicodedata.UCD * zlib.Compress * zlib.Decompress
* bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966)Serhiy Storchaka2020-12-291-1/+1
| | | | Tk can internally support bignum even if Tkinter is built without support of bignum.
* bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic ↵Serhiy Storchaka2020-12-271-4/+8
| | | | linked with Tk >= 8.5 (GH-23955)
* bpo-42318: Fix support of non-BMP characters in Tkinter on macOS (GH-23281)Serhiy Storchaka2020-11-151-6/+40
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21743)Hai Shi2020-08-061-7/+8
|
* bpo-40275: Use new test.support helper submodules in tests (GH-20824)Hai Shi2020-06-251-1/+2
|
* bpo-38371: Tkinter: deprecate the split() method. (GH-16584)Serhiy Storchaka2019-10-081-4/+9
|
* bpo-13153: Use OS native encoding for converting between Python and Tcl. ↵Serhiy Storchaka2019-10-041-0/+5
| | | | | | | | | | | | | (GH-16545) On Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the "surrogatepass" error handler for converting to/from Tcl Unicode objects. On Linux use UTF-8 with the "surrogateescape" error handler for converting to/from Tcl String objects. Converting strings from Tcl to Python and back now never fails (except MemoryError).
* bpo-33974: Fix passing special characters to ttk widgets. (GH-7986)Serhiy Storchaka2018-06-301-0/+37
| | | | Fix passing lists and tuples of strings containing special characters '"', '\\', '{', '}' and '\n' as options to tkinter.ttk widgets.
* bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split() (#3866)Serhiy Storchaka2017-10-031-21/+33
| | | | | when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests.
* Issue #23815: Fixed crashes related to directly created instances of types inSerhiy Storchaka2016-05-081-0/+2
| | | | _tkinter and curses.panel modules.
* Issue #25093: Merge with 3.4Zachary Ware2015-10-121-4/+4
|\
| * Issue #25093: Fix test_tcl's testloadWithUNC for paths with spacesZachary Ware2015-10-121-4/+4
| | | | | | | | Patch by Serhiy Storchaka.
* | Issue #20035: Reimplement tkinter._fix module as a C function.Zachary Ware2015-05-221-3/+1
| | | | | | | | | | The new private C function makes no permanent changes to the environment and is #ifdef'd out on non-Windows platforms.
* | Issue #23880: Tkinter's getint() and getdouble() now support Tcl_Obj.Serhiy Storchaka2015-05-061-1/+1
| | | | | | | | Tkinter's getdouble() now supports any numbers (in particular int).
* | Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than ↵Serhiy Storchaka2015-04-221-1/+3
|\ \ | |/ | | | | | | | | | | 8.5.8 (tclTomMath.h was broken) and non-final Tcl 8.6. Removed TK_VERSION_HEX.
| * Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than ↵Serhiy Storchaka2015-04-221-1/+3
| | | | | | | | | | | | 8.5.8 (tclTomMath.h was broken) and non-final Tcl 8.6.
* | Fixed full Tcl version parsing in tests for pre-final versions.Serhiy Storchaka2015-04-221-15/+11
|\ \ | |/
| * Fixed full Tcl version parsing in tests for pre-final versions.Serhiy Storchaka2015-04-221-15/+11
| |
* | Issue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and alwaysSerhiy Storchaka2015-04-041-1/+2
|\ \ | |/ | | | | | | returns bool. tkinter.BooleanVar now validates input values (accepted bool, int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.
| * Issue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and alwaysSerhiy Storchaka2015-04-041-1/+2
| | | | | | | | | | returns bool. tkinter.BooleanVar now validates input values (accepted bool, int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.
* | Issue #16840: Fixed test_tcl for Tcl < 8.5.Serhiy Storchaka2015-04-021-4/+4
|\ \ | |/
| * Issue #16840: Fixed test_tcl for Tcl < 8.5.Serhiy Storchaka2015-04-021-4/+4
| |
* | Issue #21526: Skip test_booleans on Tcl < 8.5.Serhiy Storchaka2015-04-021-0/+1
|\ \ | |/
| * Issue #21526: Skip test_booleans on Tcl < 8.5.Serhiy Storchaka2015-04-021-0/+1
| |
* | Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 andSerhiy Storchaka2015-04-021-7/+37
|\ \ | |/ | | | | arbitrary precision integers added in Tcl 8.5.
| * Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 andSerhiy Storchaka2015-04-021-7/+39
| | | | | | | | arbitrary precision integers added in Tcl 8.5.
* | Issue #21526: Fixed the test_booleans test for wantobjects = 0.Serhiy Storchaka2015-04-021-2/+6
|\ \ | |/
| * Issue #21526: Fixed the test_booleans test for wantobjects = 0.Serhiy Storchaka2015-04-021-2/+6
| |
* | Issue #21526: Fixed support of new boolean type in Tcl 8.5.Serhiy Storchaka2015-04-021-0/+15
|\ \ | |/
| * Issue #21526: Tkinter now supports new boolean type in Tcl 8.5.Serhiy Storchaka2015-04-021-0/+15
| |
* | Issue #21951: Fixed a crash in Tkinter on AIX when called Tcl command withSerhiy Storchaka2014-09-111-1/+2
|\ \ | |/ | | | | | | | | | | empty string or tuple argument. On some platforms Tcl memory allocator returns NULL when allocating zero-sized block of memory.
| * Issue #21951: Fixed a crash in Tkinter on AIX when called Tcl command withSerhiy Storchaka2014-09-111-1/+2
| | | | | | | | | | | | | | empty string or tuple argument. On some platforms Tcl memory allocator returns NULL when allocating zero-sized block of memory.
* | Issue #22226: Added private function _splitdict() in the Tkinter module.Serhiy Storchaka2014-09-061-1/+36
|\ \ | |/ | | | | | | First letter no longer is stripped from the "status" key in the result of Treeview.heading().
| * Issue #22226: Added private function _splitdict() in the Tkinter module.Serhiy Storchaka2014-09-061-1/+36
| | | | | | | | | | First letter no longer is stripped from the "status" key in the result of Treeview.heading().
* | Issue #22334: Add debug traces to test_tclVictor Stinner2014-09-041-2/+6
| |
* | Clean up test_user_command.Serhiy Storchaka2014-08-181-11/+14
|\ \ | |/
| * Clean up test_user_command.Serhiy Storchaka2014-08-181-11/+14
| |
* | Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk.Serhiy Storchaka2014-07-301-9/+15
|\ \ | |/ | | | | In particular this allows to initialize images from binary data.
| * Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk.Serhiy Storchaka2014-07-301-9/+15
| | | | | | | | In particular this allows to initialize images from binary data.
* | Issue #21951: Temporary skip crashing test_user_command on AIX.Serhiy Storchaka2014-07-301-0/+1
|\ \ | |/
| * Issue #21951: Temporary skip crashing test_user_command on AIX.Serhiy Storchaka2014-07-301-0/+1
| |
* | Issue #21881: Just omit tests for platform-specific NaN representation in ↵Serhiy Storchaka2014-07-071-6/+2
|\ \ | |/ | | | | test_tcl.
| * Issue #21881: Just omit tests for platform-specific NaN representation in ↵Serhiy Storchaka2014-07-071-6/+2
| | | | | | | | test_tcl.
* | Issue #21881: Be more tolerant in test_tcl to not parsable by float() NaNSerhiy Storchaka2014-07-071-6/+6
|\ \ | |/ | | | | representations (on mips and m68k platforms).
| * Issue #21881: Be more tolerant in test_tcl to not parsable by float() NaNSerhiy Storchaka2014-07-071-6/+6
| | | | | | | | representations (on mips and m68k platforms).
* | Test correct getXXX methods in Tkinter bigmem tests.Serhiy Storchaka2014-05-301-3/+3
|\ \ | |/ | | | | Tk.getint is just int, true Tk wrapper is available as Tk.tk.getint.