aboutsummaryrefslogtreecommitdiff
path: root/absl/flags/tests
diff options
context:
space:
mode:
authorYilei Yang <yileiyang@google.com>2022-01-20 10:03:33 -0800
committerCopybara-Service <copybara-worker@google.com>2022-01-20 10:04:15 -0800
commit3b2742a84ecc737b9901ec612f7c20462ab89b87 (patch)
treea72756b3fd4d1733c5e19b8ae5afe186f4480bf7 /absl/flags/tests
parent4b3aba62b7d02d92ac9f513301503a53150537ae (diff)
downloadabsl-py-3b2742a84ecc737b9901ec612f7c20462ab89b87.tar.gz
Merge changes from github.
PiperOrigin-RevId: 423095241 Change-Id: Ie78fb886746b11320e777587bf50c938d9054e37
Diffstat (limited to 'absl/flags/tests')
-rw-r--r--absl/flags/tests/_helpers_test.py2
-rw-r--r--absl/flags/tests/flags_test.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/absl/flags/tests/_helpers_test.py b/absl/flags/tests/_helpers_test.py
index 89f88b7..4746a79 100644
--- a/absl/flags/tests/_helpers_test.py
+++ b/absl/flags/tests/_helpers_test.py
@@ -134,7 +134,7 @@ class GetCallingModuleTest(absltest.TestCase):
orig_sys_modules = sys.modules
# Mock sys.modules: simulates error produced by importing a module
- # in paralel with our iteration over sys.modules.iteritems().
+ # in parallel with our iteration over sys.modules.iteritems().
class SysModulesMock(dict):
def __init__(self, original_content):
diff --git a/absl/flags/tests/flags_test.py b/absl/flags/tests/flags_test.py
index a0a301d..b76fc86 100644
--- a/absl/flags/tests/flags_test.py
+++ b/absl/flags/tests/flags_test.py
@@ -1067,7 +1067,7 @@ class FlagsUnitTest(absltest.TestCase):
argv = ('./program', '--repeat=2.5')
FLAGS(argv)
- # Missing required arugment
+ # Missing required argument
with self.assertRaises(flags.Error):
argv = ('./program', '--name')
FLAGS(argv)
@@ -1111,7 +1111,7 @@ class FlagsUnitTest(absltest.TestCase):
self.assertEqual(float(FLAGS['float'].default), FLAGS.alias_float)
self.assertSameElements(FLAGS['letters'].default, FLAGS.alias_letters)
- # Original flags set on comand line
+ # Original flags set on command line
argv = ('./program', '--name=Martin', '--debug=True', '--decimal=777',
'--letters=x,y,z')
FLAGS(argv)
@@ -1870,7 +1870,7 @@ class LoadFromFlagFileTest(absltest.TestCase):
fake_argv = fake_cmd_line.split(' ')
# We should see the original cmd line with the file's contents spliced in.
- # Flags from the file will appear in the order order they are sepcified
+ # Flags from the file will appear in the order order they are specified
# in the file, in the same position as the flagfile argument.
expected_results = [
'fooScript', '--q', '--unittest_message1=tempFile1!',
@@ -2085,7 +2085,7 @@ class LoadFromFlagFileTest(absltest.TestCase):
def test_no_touchy_non_flags(self):
"""Test that the flags parser does not mutilate arguments.
- The argumants are not supposed to be flags
+ The arguments are not supposed to be flags
"""
fake_argv = [
'fooScript', '--unittest_boolflag', 'command', '--command_arg1',