summaryrefslogtreecommitdiffstats
path: root/googletest/test/gtest_test_utils.py
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@google.com>2023-01-25 20:34:50 (GMT)
committerCopybara-Service <copybara-worker@google.com>2023-01-25 20:35:34 (GMT)
commit137dcd18cc20b49059d834a592fe7e200bc4aeee (patch)
treed8514d271d0eb5a3e0782c686760c22300a90c25 /googletest/test/gtest_test_utils.py
parent643862d8adb333eae9f3ff288895314dfcc87587 (diff)
downloadgoogletest-137dcd18cc20b49059d834a592fe7e200bc4aeee.zip
googletest-137dcd18cc20b49059d834a592fe7e200bc4aeee.tar.gz
googletest-137dcd18cc20b49059d834a592fe7e200bc4aeee.tar.bz2
Remove pylint disable comments that no longer trigger warnings
PiperOrigin-RevId: 504633130 Change-Id: I3fdbc83975fea97aa53f7325d323adead0a30e24
Diffstat (limited to 'googletest/test/gtest_test_utils.py')
-rwxr-xr-xgoogletest/test/gtest_test_utils.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/googletest/test/gtest_test_utils.py b/googletest/test/gtest_test_utils.py
index 459f9ea..6fc39b5 100755
--- a/googletest/test/gtest_test_utils.py
+++ b/googletest/test/gtest_test_utils.py
@@ -63,9 +63,8 @@ def SetEnvVar(env_var, value):
# Here we expose a class from a particular module, depending on the
-# environment. The comment suppresses the 'Invalid variable name' lint
-# complaint.
-TestCase = _test_module.TestCase # pylint: disable=C6409
+# environment.
+TestCase = _test_module.TestCase
# Initially maps a flag to its default value. After
# _ParseAndStripGTestFlags() is called, maps a flag to its actual value.
@@ -77,9 +76,7 @@ _gtest_flags_are_parsed = False
def _ParseAndStripGTestFlags(argv):
"""Parses and strips Google Test flags from argv. This is idempotent."""
- # Suppresses the lint complaint about a global variable since we need it
- # here to maintain module-wide state.
- global _gtest_flags_are_parsed # pylint: disable=W0603
+ global _gtest_flags_are_parsed
if _gtest_flags_are_parsed:
return