mirror of
https://github.com/google/googletest.git
synced 2024-12-27 10:11:03 +08:00
Remove pylint disable comments that no longer trigger warnings
PiperOrigin-RevId: 504633130 Change-Id: I3fdbc83975fea97aa53f7325d323adead0a30e24
This commit is contained in:
parent
643862d8ad
commit
137dcd18cc
@ -77,9 +77,6 @@ def GetExitStatus(exit_code):
|
|||||||
return -1
|
return -1
|
||||||
|
|
||||||
|
|
||||||
# Suppresses the "Invalid const name" lint complaint
|
|
||||||
# pylint: disable-msg=C6409
|
|
||||||
|
|
||||||
# Exposes utilities from gtest_test_utils.
|
# Exposes utilities from gtest_test_utils.
|
||||||
Subprocess = gtest_test_utils.Subprocess
|
Subprocess = gtest_test_utils.Subprocess
|
||||||
TestCase = gtest_test_utils.TestCase
|
TestCase = gtest_test_utils.TestCase
|
||||||
@ -87,8 +84,6 @@ environ = gtest_test_utils.environ
|
|||||||
SetEnvVar = gtest_test_utils.SetEnvVar
|
SetEnvVar = gtest_test_utils.SetEnvVar
|
||||||
PREMATURE_EXIT_FILE_ENV_VAR = gtest_test_utils.PREMATURE_EXIT_FILE_ENV_VAR
|
PREMATURE_EXIT_FILE_ENV_VAR = gtest_test_utils.PREMATURE_EXIT_FILE_ENV_VAR
|
||||||
|
|
||||||
# pylint: enable-msg=C6409
|
|
||||||
|
|
||||||
|
|
||||||
def Main():
|
def Main():
|
||||||
"""Runs the unit test."""
|
"""Runs the unit test."""
|
||||||
|
@ -81,7 +81,6 @@ EX_BINARY_OUTPUT = gtest_test_utils.Subprocess(
|
|||||||
|
|
||||||
# The tests.
|
# The tests.
|
||||||
if SUPPORTS_SEH_EXCEPTIONS:
|
if SUPPORTS_SEH_EXCEPTIONS:
|
||||||
# pylint:disable-msg=C6302
|
|
||||||
class CatchSehExceptionsTest(gtest_test_utils.TestCase):
|
class CatchSehExceptionsTest(gtest_test_utils.TestCase):
|
||||||
"""Tests exception-catching behavior."""
|
"""Tests exception-catching behavior."""
|
||||||
|
|
||||||
|
@ -63,9 +63,8 @@ def SetEnvVar(env_var, value):
|
|||||||
|
|
||||||
|
|
||||||
# Here we expose a class from a particular module, depending on the
|
# Here we expose a class from a particular module, depending on the
|
||||||
# environment. The comment suppresses the 'Invalid variable name' lint
|
# environment.
|
||||||
# complaint.
|
TestCase = _test_module.TestCase
|
||||||
TestCase = _test_module.TestCase # pylint: disable=C6409
|
|
||||||
|
|
||||||
# Initially maps a flag to its default value. After
|
# Initially maps a flag to its default value. After
|
||||||
# _ParseAndStripGTestFlags() is called, maps a flag to its actual value.
|
# _ParseAndStripGTestFlags() is called, maps a flag to its actual value.
|
||||||
@ -77,9 +76,7 @@ _gtest_flags_are_parsed = False
|
|||||||
def _ParseAndStripGTestFlags(argv):
|
def _ParseAndStripGTestFlags(argv):
|
||||||
"""Parses and strips Google Test flags from argv. This is idempotent."""
|
"""Parses and strips Google Test flags from argv. This is idempotent."""
|
||||||
|
|
||||||
# Suppresses the lint complaint about a global variable since we need it
|
global _gtest_flags_are_parsed
|
||||||
# here to maintain module-wide state.
|
|
||||||
global _gtest_flags_are_parsed # pylint: disable=W0603
|
|
||||||
if _gtest_flags_are_parsed:
|
if _gtest_flags_are_parsed:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user