Browse Source

Remove timeutils.clear_time_override in neutron

The clear_time_override function in timeutils was written as a
helper function to mock utcnow for unittests before 'mock' was
generally used. Now that we have mock and fixture, we no longer
need to use it.

Change-Id: I7baa623fd71a7d03acc61dd1f18287bb654539cd
Partial-Bug: #1266962
tags/10.0.0.0b2
Luong Anh Tuan 2 years ago
parent
commit
5805a075b5

+ 0
- 1
neutron/tests/unit/services/metering/agents/test_metering_agent.py View File

@@ -130,7 +130,6 @@ class TestMeteringOperations(base.BaseTestCase):
130 130
 
131 131
         now = timeutils.utcnow()
132 132
         time_fixture = self.useFixture(utils_fixture.TimeFixture(now))
133
-        self.addCleanup(timeutils.clear_time_override)
134 133
 
135 134
         self.agent.routers_updated(None, ROUTERS)
136 135
 

Loading…
Cancel
Save