aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorJosh Soref <2119212+jsoref@users.noreply.github.com>2023-04-11 16:04:17 -0400
committerEli Schwartz <eschwartz93@gmail.com>2023-04-11 19:21:05 -0400
commitcf9fd56bc905a2022ad48c93d25b5a73b57c8802 (patch)
treea6858f0e790f801f49d8d4f161e9183deaf90e20 /unittests
parente238b81ba0b89faa19b512d1e78de00dad1488ce (diff)
downloadmeson-cf9fd56bc905a2022ad48c93d25b5a73b57c8802.zip
meson-cf9fd56bc905a2022ad48c93d25b5a73b57c8802.tar.gz
meson-cf9fd56bc905a2022ad48c93d25b5a73b57c8802.tar.bz2
fix various spelling issues
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Diffstat (limited to 'unittests')
-rw-r--r--unittests/allplatformstests.py4
-rw-r--r--unittests/darwintests.py2
-rw-r--r--unittests/internaltests.py2
-rw-r--r--unittests/machinefiletests.py2
-rw-r--r--unittests/rewritetests.py2
5 files changed, 6 insertions, 6 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index 0581caf..a8ec787 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -679,7 +679,7 @@ class AllPlatformTests(BasePlatformTests):
with open(os.path.join(self.logdir, 'testlog-good.txt'), encoding='utf-8') as f:
exclude_suites_log = f.read()
self.assertNotIn('buggy', exclude_suites_log)
- # --suite overrides add_test_setup(xclude_suites)
+ # --suite overrides add_test_setup(exclude_suites)
self._run(self.mtest_command + ['--setup=good', '--suite', 'buggy'])
with open(os.path.join(self.logdir, 'testlog-good.txt'), encoding='utf-8') as f:
include_suites_log = f.read()
@@ -2228,7 +2228,7 @@ class AllPlatformTests(BasePlatformTests):
msg = ('''DEPRECATION: target prog links against shared module mymod, which is incorrect.
This will be an error in the future, so please use shared_library() for mymod instead.
If shared_module() was used for mymod because it has references to undefined symbols,
- use shared_libary() with `override_options: ['b_lundef=false']` instead.''')
+ use shared_library() with `override_options: ['b_lundef=false']` instead.''')
self.assertIn(msg, out)
def test_mixed_language_linker_check(self):
diff --git a/unittests/darwintests.py b/unittests/darwintests.py
index 6bf15aa..254b3d0 100644
--- a/unittests/darwintests.py
+++ b/unittests/darwintests.py
@@ -138,7 +138,7 @@ class DarwinTests(BasePlatformTests):
def test_objc_versions(self):
# Objective-C always uses the C standard version.
- # Objecttive-C++ always uses the C++ standard version.
+ # Objective-C++ always uses the C++ standard version.
# This is what most people seem to want and in addition
# it is the only setup supported by Xcode.
testdir = os.path.join(self.objc_test_dir, '1 simple')
diff --git a/unittests/internaltests.py b/unittests/internaltests.py
index 28e5366..baeaacd 100644
--- a/unittests/internaltests.py
+++ b/unittests/internaltests.py
@@ -1101,7 +1101,7 @@ class InternalTests(unittest.TestCase):
_(None, mock.Mock(), ['string', 'var', 'args', 0], None)
self.assertEqual(str(cm.exception), 'foo argument 4 was of type "int" but should have been "str"')
- def test_typed_pos_args_varargs_invalid_mulitple_types(self) -> None:
+ def test_typed_pos_args_varargs_invalid_multiple_types(self) -> None:
@typed_pos_args('foo', str, varargs=(str, list))
def _(obj, node, args: T.Tuple[str, T.List[str]], kwargs) -> None:
self.assertTrue(False) # should not be reachable
diff --git a/unittests/machinefiletests.py b/unittests/machinefiletests.py
index 235d7dc..5a9c01d 100644
--- a/unittests/machinefiletests.py
+++ b/unittests/machinefiletests.py
@@ -140,7 +140,7 @@ class NativeFileTests(BasePlatformTests):
return batfile
def helper_for_compiler(self, lang, cb, for_machine = MachineChoice.HOST):
- """Helper for generating tests for overriding compilers for langaugages
+ """Helper for generating tests for overriding compilers for languages
with more than one implementation, such as C, C++, ObjC, ObjC++, and D.
"""
env = get_fake_env()
diff --git a/unittests/rewritetests.py b/unittests/rewritetests.py
index 4979c51..ca30fe9 100644
--- a/unittests/rewritetests.py
+++ b/unittests/rewritetests.py
@@ -156,7 +156,7 @@ class RewriterTests(BasePlatformTests):
}
self.assertDictEqual(out, expected)
- def test_tatrget_add(self):
+ def test_target_add(self):
self.prime('1 basic')
self.rewrite(self.builddir, os.path.join(self.builddir, 'addTgt.json'))
out = self.rewrite(self.builddir, os.path.join(self.builddir, 'info.json'))