mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#18741: merge with 3.3.
This commit is contained in:
commit
e0c69161bc
22 changed files with 38 additions and 36 deletions
|
@ -1146,7 +1146,7 @@ test case
|
|||
self.assertWarns(DeprecationWarning, _runtime_warn)
|
||||
|
||||
def testAssertWarnsContext(self):
|
||||
# Believe it or not, it is preferrable to duplicate all tests above,
|
||||
# Believe it or not, it is preferable to duplicate all tests above,
|
||||
# to make sure the __warningregistry__ $@ is circumvented correctly.
|
||||
def _runtime_warn():
|
||||
warnings.warn("foo", RuntimeWarning)
|
||||
|
|
|
@ -324,7 +324,7 @@ class Test_TestLoader(unittest.TestCase):
|
|||
# Does loadTestsFromName raise TypeError when the `module` argument
|
||||
# isn't a module object?
|
||||
#
|
||||
# XXX Accepts the not-a-module object, ignorning the object's type
|
||||
# XXX Accepts the not-a-module object, ignoring the object's type
|
||||
# This should raise an exception or the method name should be changed
|
||||
#
|
||||
# XXX Some people are relying on this, so keep it for now
|
||||
|
|
|
@ -365,7 +365,7 @@ class TestCommandLineArgs(unittest.TestCase):
|
|||
self.assertEqual(program.testNames, argv[1:])
|
||||
|
||||
# it may be better to use platform specific functions to normalise paths
|
||||
# rather than accepting '.PY' and '\' as file seprator on Linux / Mac
|
||||
# rather than accepting '.PY' and '\' as file separator on Linux / Mac
|
||||
# it would also be better to check that a filename is a valid module
|
||||
# identifier (we have a regex for this in loader.py)
|
||||
# for invalid filenames should we raise a useful error rather than
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue