Only parse known flags. Don't touch pytest flags.
@@ -29,5 +29,5 @@ class TestCase(parameterized.TestCase):
flags.FLAGS.test_tmpdir
except flags.UnparsedFlagAccessError:
# Need to initialize flags when running `pytest`.
- flags.FLAGS(sys.argv)
+ flags.FLAGS(sys.argv, known_only=True)
return self.create_tempdir(name).full_path
