Remove unused flag_overrides from TestCase

This was replaced by _original_flags in e0ae19c7a, but it wasn't
actually removed.

Change-Id: I89ed7de263ff040d86dea970aa8fcda640d19f79
This commit is contained in:
Mark McLoughlin 2011-10-15 16:44:56 +01:00
parent 4b71b7895f
commit 9059c6823f

View File

@ -128,7 +128,6 @@ class TestCase(unittest.TestCase):
# because it screws with our generators
self.mox = mox.Mox()
self.stubs = stubout.StubOutForTesting()
self.flag_overrides = {}
self.injected = []
self._services = []
self._original_flags = FLAGS.FlagValuesDict()
@ -173,9 +172,6 @@ class TestCase(unittest.TestCase):
def flags(self, **kw):
"""Override flag variables for a test."""
for k, v in kw.iteritems():
# Store original flag value if it's not been overriden yet
if k not in self.flag_overrides:
self.flag_overrides[k] = getattr(FLAGS, k)
setattr(FLAGS, k, v)
def reset_flags(self):