mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Issue #5341: Fix a variety of spelling errors.
This commit is contained in:
parent
a12a86e956
commit
3e4caeb3bf
56 changed files with 93 additions and 93 deletions
|
@ -87,11 +87,11 @@ class TestCaseBase(unittest.TestCase):
|
|||
# Make sure the right things happen for remove_option();
|
||||
# added to include check for SourceForge bug #123324:
|
||||
self.failUnless(cf.remove_option('Foo Bar', 'foo'),
|
||||
"remove_option() failed to report existance of option")
|
||||
"remove_option() failed to report existence of option")
|
||||
self.failIf(cf.has_option('Foo Bar', 'foo'),
|
||||
"remove_option() failed to remove option")
|
||||
self.failIf(cf.remove_option('Foo Bar', 'foo'),
|
||||
"remove_option() failed to report non-existance of option"
|
||||
"remove_option() failed to report non-existence of option"
|
||||
" that was removed")
|
||||
|
||||
self.assertRaises(ConfigParser.NoSectionError,
|
||||
|
@ -264,7 +264,7 @@ class TestCaseBase(unittest.TestCase):
|
|||
file1 = test_support.findfile("cfgparser.1")
|
||||
# check when we pass a mix of readable and non-readable files:
|
||||
cf = self.newconfig()
|
||||
parsed_files = cf.read([file1, "nonexistant-file"])
|
||||
parsed_files = cf.read([file1, "nonexistent-file"])
|
||||
self.assertEqual(parsed_files, [file1])
|
||||
self.assertEqual(cf.get("Foo Bar", "foo"), "newbar")
|
||||
# check when we pass only a filename:
|
||||
|
@ -274,7 +274,7 @@ class TestCaseBase(unittest.TestCase):
|
|||
self.assertEqual(cf.get("Foo Bar", "foo"), "newbar")
|
||||
# check when we pass only missing files:
|
||||
cf = self.newconfig()
|
||||
parsed_files = cf.read(["nonexistant-file"])
|
||||
parsed_files = cf.read(["nonexistent-file"])
|
||||
self.assertEqual(parsed_files, [])
|
||||
# check when we pass no files:
|
||||
cf = self.newconfig()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue