Skip to content

Commit

Permalink
Remove deprecated assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Dec 24, 2014
1 parent 4a737ee commit 921999f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_startTime(self):
assert_time = time.time()
test_time = self._Test__new().getStartTime()

self.failUnless(abs(assert_time - test_time) < time_tolerance)
self.assertTrue(abs(assert_time - test_time) < time_tolerance)


def test_suite():
Expand Down
4 changes: 2 additions & 2 deletions src/zope/applicationcontrol/tests/test_runtimeinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_PythonVersion(self):

def test_SystemPlatform(self):
runtime_info = self._Test__new()
self.failUnless(runtime_info.getSystemPlatform())
self.assertTrue(runtime_info.getSystemPlatform())

def test_CommandLine(self):
runtime_info = self._Test__new()
Expand All @@ -113,7 +113,7 @@ def test_Uptime(self):
# get the uptime the current implementation calculates
test_uptime = runtime_info.getUptime()

self.failUnless(abs(asserted_uptime - test_uptime) < time_tolerance)
self.assertTrue(abs(asserted_uptime - test_uptime) < time_tolerance)


def test_suite():
Expand Down

0 comments on commit 921999f

Please sign in to comment.