mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
Ensure 'module removed' warning messages contain the word 'module' or 'package'.
This should fix the test_py3kwarn failure on OS X. test_support.import_module also requires this.
This commit is contained in:
parent
0ccc7bbb34
commit
920fd66ac6
7 changed files with 7 additions and 7 deletions
|
@ -695,7 +695,7 @@ initMacOS(void)
|
|||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
if (PyErr_WarnPy3k("In 3.x, MacOS is removed.", 1))
|
||||
if (PyErr_WarnPy3k("In 3.x, the MacOS module is removed.", 1))
|
||||
return;
|
||||
|
||||
m = Py_InitModule("MacOS", MacOS_Methods);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue