From f28a26b4e7b279056f73f8171e83ea6f776860f8 Mon Sep 17 00:00:00 2001 From: Otto Kekäläinen Date: Sun, 3 Jul 2016 09:50:59 +0100 Subject: Fix spelling of existant->existent in function names, strings and comments --- examples/gbp-posttag-push | 2 +- tests/09_test_write_tree.py | 6 +++--- tests/19_test_gbp_scripts_config.py | 4 ++-- tests/component/rpm/test_import_srpm.py | 2 +- tests/test_Changelog.py | 4 ++-- tests/test_GitRepository.py | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/gbp-posttag-push b/examples/gbp-posttag-push index cd8968d..c65ef4b 100755 --- a/examples/gbp-posttag-push +++ b/examples/gbp-posttag-push @@ -128,7 +128,7 @@ def main(argv): upstream_sha1 = repo.rev_parse("%s^{}" % upstream_tag) if not repo.verify_tag(env.tag): - print("Not pushing nonexistent or unsigned tag '%s'." % env.tag, file=sys.stderr) + print("Not pushing non-existent or unsigned tag '%s'." % env.tag, file=sys.stderr) return 0 for dest in dests: diff --git a/tests/09_test_write_tree.py b/tests/09_test_write_tree.py index bad362c..81b9995 100644 --- a/tests/09_test_write_tree.py +++ b/tests/09_test_write_tree.py @@ -25,8 +25,8 @@ class TestWriteTree(testutils.DebianGitTestRepo): paths.append(path) return paths - def test_write_tree_index_nonexistant(self): - """Write out index file to nonexistant dir""" + def test_write_tree_index_nonexistent(self): + """Write out index file to non-existent dir""" paths = self._write_testtree() self.repo.add_files(paths) self.assertRaises(gbp.git.GitRepositoryError, @@ -62,7 +62,7 @@ class TestWriteTree(testutils.DebianGitTestRepo): self.assertEqual(len(commit), 40) # commit the same tree again using the previous commit as parent self.repo.commit_tree(sha1, "second commit", parents=[commit]) - # commit the same tree again using a non existant parent + # commit the same tree again using a non-existent parent self.assertRaises(gbp.errors.GbpError, self.repo.commit_tree, sha1, diff --git a/tests/19_test_gbp_scripts_config.py b/tests/19_test_gbp_scripts_config.py index 9d0afd5..1d5f910 100644 --- a/tests/19_test_gbp_scripts_config.py +++ b/tests/19_test_gbp_scripts_config.py @@ -94,8 +94,8 @@ class TestGbpConfigCommand(unittest.TestCase): self.assertEquals(printstub.result['%s.color' % cmd], 'auto') self.assertEqual(ret, 0) - def test_unexistent_cmds(self): - """Unexisting commands should print no values""" + def test_nonexistent_cmds(self): + """Non-existing commands should print no values""" for cmd in ["import_dscs", "supercommand"]: printstub = self.AllValuesPrintStub(cmd) ret = gbp.scripts.config.print_cmd_values(cmd, printstub) diff --git a/tests/component/rpm/test_import_srpm.py b/tests/component/rpm/test_import_srpm.py index 31a18a5..562dd9f 100644 --- a/tests/component/rpm/test_import_srpm.py +++ b/tests/component/rpm/test_import_srpm.py @@ -274,7 +274,7 @@ class TestDownloadImport(ComponentTestBase): self._check_repo_state(repo, 'master', ['master', 'upstream']) def test_nonexistent_url(self): - """Test graceful failure when trying download from nonexistent url""" + """Test graceful failure when trying download from non-existent url""" srpm = 'http://honk.sigxcpu.org/does/not/exist' # Do not connect to remote, mock failure import_srpm.urlopen = Mock() diff --git a/tests/test_Changelog.py b/tests/test_Changelog.py index e66b42f..4de69fe 100644 --- a/tests/test_Changelog.py +++ b/tests/test_Changelog.py @@ -217,7 +217,7 @@ def test_parse_sections(): def test_add_section(): """ - Test if we can add a section to an existant changelog + Test if we can add a section to an existing changelog Methods tested: - L{gbp.deb.changelog.ChangeLog.__init__} @@ -263,7 +263,7 @@ def test_add_section(): def test_add_entry(): """ - Test if we can add an entry to an existant changelog + Test if we can add an entry to an existing changelog Methods tested: - L{gbp.deb.changelog.ChangeLog.__init__} diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index f25e9a6..dd3e8dd 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -708,9 +708,9 @@ def test_create_bare(): (True, '') """ -def test_nonexistant(): +def test_nonexistent(): """ - Check that accessing a non existant repository fails. + Check that accessing a non-existent repository fails. Methods tested: - L{gbp.git.GitRepository.__init__} -- cgit v1.2.3