summaryrefslogtreecommitdiff
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* update doc (remove ref to activestate recipe)bind-socketGiampaolo Rodola2019-03-281-1/+0
|
* Merge branch 'master' into bind-socketGiampaolo Rodola2019-03-2841-580/+2400
|\
| * bpo-29515: add missing socket.IPPROTO_* constants on Windows (GH-12183)Giampaolo Rodola2019-03-281-0/+19
| |
| * bpo-36452: dictiter: track maximum iteration count (GH-12596)Thomas Perl2019-03-281-0/+9
| |
| * bpo-36443: Disable C locale coercion and UTF-8 Mode by default (GH-12589)Victor Stinner2019-03-271-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bpo-36443, bpo-36202: Since Python 3.7.0, calling Py_DecodeLocale() before Py_Initialize() produces mojibake if the LC_CTYPE locale is coerced and/or if the UTF-8 Mode is enabled by the user configuration. This change fix the issue by disabling LC_CTYPE coercion and UTF-8 Mode by default. They must now be enabled explicitly (opt-in) using the new _Py_PreInitialize() API with _PyPreConfig. When embedding Python, set coerce_c_locale and utf8_mode attributes of _PyPreConfig to -1 to enable automatically these parameters depending on the LC_CTYPE locale, environment variables and command line arguments Alternative: Setting Py_UTF8Mode to 1 always explicitly enables the UTF-8 Mode. Changes: * _PyPreConfig_INIT now sets coerce_c_locale and utf8_mode to 0 by default. * _Py_InitializeFromArgs() and _Py_InitializeFromWideArgs() can now be called with config=NULL.
| * bpo-31904: Fix test_utf8_mode on VxWorks (GH-12428)hliu02019-03-271-2/+2
| | | | | | Python always use UTF-8 on VxWorks.
| * bpo-36407: Fix writing indentations of CDATA section (xml.dom.minidom). ↵Vladimir Surjaninov2019-03-271-0/+16
| | | | | | | | (GH-12514)
| * bpo-36444: Add _PyCoreConfig._init_main (GH-12572)Victor Stinner2019-03-271-0/+1
| | | | | | | | | | | | | | | | * Add _PyCoreConfig._init_main: if equals to zero, _Py_InitializeFromConfig() doesn't call _Py_InitializeMainInterpreter(). * Add interp_p parameter to _Py_InitializeFromConfig(). * pymain_init() now calls _Py_InitializeFromConfig(). * Make _Py_InitializeCore() private.
| * bpo-36444: Remove _PyMainInterpreterConfig (GH-12571)Victor Stinner2019-03-271-29/+0
| |
| * bpo-36301: Test Python init with isolated (GH-12569)Victor Stinner2019-03-271-0/+20
| | | | | | Add test_preinit_isolated1() and test_preinit_isolated2() test_embed.
| * bpo-36301: Cleanup preconfig.c and coreconfig.c (GH-12563)Victor Stinner2019-03-261-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * _PyCoreConfig_Write() now updates _PyRuntime.preconfig * Remove _PyPreCmdline_Copy() * _PyPreCmdline_Read() now accepts _PyPreConfig and _PyCoreConfig optional configurations. * Rename _PyPreConfig_ReadFromArgv() to _PyPreConfig_Read(). Simplify the code. * Calling _PyCoreConfig_Read() no longer adds the warning options twice: don't add a warning option if it's already in the list. * Rename _PyCoreConfig_ReadFromArgv() to _PyCoreConfig_Read(). * Rename config_from_cmdline() to _PyCoreConfig_ReadFromArgv(). * Add more assertions on _PyCoreConfig in _PyCoreConfig_Read(). * Move some functions. * Make some config functions private.
| * bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)Inada Naoki2019-03-261-3/+18
| | | | | | https://bugs.python.org/issue36433
| * bpo-36301: Remove _PyCoreConfig.preconfig (GH-12546)Victor Stinner2019-03-261-17/+28
| | | | | | | | | | | | * Replace _PyCoreConfig.preconfig with 3 new fields in _PyCoreConfig: isolated, use_environment, dev_mode. * Add _PyPreCmdline.dev_mode. * Add _Py_PreInitializeFromPreConfigInPlace().
| * bpo-36301: Add _Py_GetConfigsAsDict() function (GH-12540)Victor Stinner2019-03-252-46/+79
| | | | | | | | | | | | | | * Add _Py_GetConfigsAsDict() function to get all configurations as a dict. * dump_config() of _testembed.c now dumps preconfig as a separated key: call _Py_GetConfigsAsDict(). * Make _PyMainInterpreterConfig_AsDict() private.
| * bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using ↵Pablo Galindo2019-03-251-110/+9
| | | | | | | | | | | | pgen (GH-12456) Now that the parser generator is written in Python (Parser/pgen) we can make use of it to regenerate the Lib/keyword file that contains the language keywords instead of parsing the autogenerated grammar files. This also allows checking in the CI that the autogenerated files are up to date.
| * bpo-36326: Let inspect.getdoc() find docstrings for __slots__ (GH-12498)Raymond Hettinger2019-03-252-1/+10
| |
| * bpo-36218: Fix handling of heterogeneous values in list.sort (GH-12209)Rémi Lapeyre2019-03-251-0/+5
| |
| * bpo-36401: Have help() show readonly properties separately (GH-12517)Raymond Hettinger2019-03-241-1/+1
| |
| * bpo-36298: Raise ModuleNotFoundError in pyclbr when a module can't be found ↵Brett Cannon2019-03-221-2/+22
| | | | | | | | | | | | | | | | (GH-12358) Before, an `AttributeError` was raised due to trying to access an attribute that exists on specs but having received `None` instead for a non-existent module. https://bugs.python.org/issue36298
| * bpo-30670: Add pp function to the pprint module (GH-11769)Rémi Lapeyre2019-03-221-0/+7
| |
| * asyncio: PendingDeprecationWarning -> DeprecationWarning (GH-12494)Inada Naoki2019-03-221-9/+9
| | | | | | `Task.current_task()` and `Task.all_tasks()` will be removed in 3.9.
| * Raise the timeout in test_multiprocessing_* for slow buildbots (GH-12489)Pablo Galindo2019-03-221-1/+1
| |
| * bpo-36256: Fix bug in parsermodule when parsing if statements (GH-12477)Pablo Galindo2019-03-211-0/+4
| | | | | | | | | | | | bpo-36256: Fix bug in parsermodule when parsing if statements In the parser module, when validating nodes before starting the parsing with to create a ST in "parser_newstobject" there is a problem that appears when two arcs in the same DFA state has transitions with labels with the same type. For example, the DFA for if_stmt has a state with two labels with the same type: "elif" and "else" (type NAME). The algorithm tries one by one the arcs until the label that starts the arc transition has a label with the same type of the current child label we are trying to accept. In this case, the arc for "elif" comes before the arc for "else"and passes this test (because the current child label is "else" and has the same type as "elif"). This lead to expecting a namedexpr_test (305) instead of a colon (11). The solution is to compare also the string representation (in case there is one) of the labels to see if the transition that we have is the correct one.
| * bpo-35978: Correctly skips venv tests in venvs (GH-12220)Steve Dower2019-03-211-5/+10
| | | | | | Also fixes venvs from the build directory on Windows.
| * bpo-36268: Change default tar format to pax from GNU. (GH-12355)CAM Gerlach2019-03-211-5/+6
| |
| * bpo-36324: NormalDist() add more tests and update comments (GH-12476)Raymond Hettinger2019-03-201-24/+44
| | | | | | | | | | | | | | * Improve coverage. * Note inherent limitations of the accuracy tests https://bugs.python.org/issue36324
| * bpo-36285: Fix integer overflow in the array module. (GH-12317)sth2019-03-201-0/+141
| |
| * bpo-36312: Fix decoders for some code pages. (GH-12369)Serhiy Storchaka2019-03-201-0/+9
| |
| * bpo-36324: Add inv_cdf() to statistics.NormalDist() (GH-12377)Raymond Hettinger2019-03-181-0/+63
| |
| * bpo-36332: Allow compile() to handle AST objects with assignment expressions ↵Pablo Galindo2019-03-181-0/+11
| | | | | | | | | | | | (GH-12398)
| * bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375)Raymond Hettinger2019-03-181-6/+6
| |
| * bpo-36297: remove "unicode_internal" codec (GH-12342)Inada Naoki2019-03-183-179/+30
| |
| * bpo-34745: Fix asyncio sslproto memory issues (GH-12386)Fantix King2019-03-171-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix handshake timeout leak in asyncio/sslproto Refs MagicStack/uvloop#222 * Break circular ref _SSLPipe <-> SSLProtocol * bpo-34745: Fix asyncio ssl memory leak * Break circular ref SSLProtocol <-> UserProtocol * Add NEWS entry
| * bpo-36301: _PyCoreConfig_Read() ensures that argv is not empty (GH-12347)Victor Stinner2019-03-151-1/+1
| | | | | | If argv is empty, add an empty string.
| * bpo-36272: Logging now propagates RecursionError (GH-12312)Rémi Lapeyre2019-03-151-1/+16
| |
| * bpo-36127: Argument Clinic: inline parsing code for keyword parameters. ↵Serhiy Storchaka2019-03-141-0/+1263
| | | | | | | | (GH-12058)
| * bpo-36282: Improved error message for too much positional arguments. (GH-12310)Serhiy Storchaka2019-03-131-1/+1
| |
| * bpo-36280: Add Constant.kind field (GH-12295)Guido van Rossum2019-03-131-44/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The value is a string for string and byte literals, None otherwise. It is 'u' for u"..." literals, 'b' for b"..." literals, '' for "..." literals. The 'r' (raw) prefix is ignored. Does not apply to f-strings. This appears sufficient to make mypy capable of using the stdlib ast module instead of typed_ast (assuming a mypy patch I'm working on). WIP: I need to make the tests pass. @ilevkivskyi @serhiy-storchaka https://bugs.python.org/issue36280
| * Fix stepping into a frame without a __name__ (GH-12064)Anthony Sottile2019-03-121-0/+7
| |
| * bpo-35661: Fix failing test on buildbot (GH-12297)Cheryl Sabella2019-03-121-4/+6
| |
| * bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282)Anthony Sottile2019-03-122-10/+12
| |
| * bpo-30040: new empty dict uses key-sharing dict (GH-1080)Inada Naoki2019-03-122-4/+6
| | | | | | | | Sizeof new empty dict becomes 72 bytes from 240 bytes (amd64). It is same size to empty dict created by dict.clear().
| * bpo-35892: Fix mode() and add multimode() (#12089)Raymond Hettinger2019-03-121-8/+19
| |
| * bpo-35931: Gracefully handle any exception in pdb debug command (GH-12103)Daniel Hahler2019-03-111-4/+18
| | | | | | | | This is relevant for `debug doesnotexist()`, which would crash with a NameError otherwise.
| * bpo-36234: Add more tests to PosixUidGidTests (GH-12234)Victor Stinner2019-03-111-8/+20
| | | | | | | | | | | | | | | | | | | | test_posix.PosixUidGidTests: * Add tests for invalid uid/gid type (str) * Add UID_OVERFLOW and GID_OVERFLOW constants to replace (1 << 32) Initial patch written by David Malcolm. Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
| * bpo-35647: Fix path check in cookiejar (#11436)Xtreak2019-03-101-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | * Refactor cookie path check as per RFC 6265 * Add tests for prefix match of path * Add news entry * Fix set_ok_path and refactor tests * Use slice for last letter
| * bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258)Xtreak2019-03-091-0/+30
| | | | | | Don't send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with `http.cookiejar.DefaultCookiePolicy` policy. Patch by Karthikeyan Singaravelan.
| * closes bpo-33376: Update to Unicode 12.0.0. (GH-12256)Benjamin Peterson2019-03-091-2/+2
| |
| * Rework integer overflow path in math.prod and add more tests (GH-11809)Pablo Galindo2019-03-091-35/+86
| | | | | | | | | | The overflow check was relying on undefined behaviour as it was using the result of the multiplication to do the check, and once the overflow has already happened, any operation on the result is undefined behaviour. Some extra checks that exercise code paths related to this are also added.
| * bpo-35661: Store the venv prompt in pyvenv.cfg (GH-11440)Cheryl Sabella2019-03-081-0/+6
| |