Skip to content

Commit

Permalink
<= instead of < for timings
Browse files Browse the repository at this point in the history
Virtual machine can have less precise timings
  • Loading branch information
rogerbinns committed Oct 30, 2016
1 parent ad0bbc8 commit 7449b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1802,7 +1802,7 @@ def profile(statement, timing):
self.assertEqual("select max(x) from foo", profileinfo[0][0])
self.assertEqual("select max(x) from foo", profileinfo[-1][0])
# the query using the index should take way less time
self.assertTrue(profileinfo[0][1]<profileinfo[-1][1])
self.assertTrue(profileinfo[0][1]<=profileinfo[-1][1])
def profile(*args):
1/0
self.db.setprofile(profile)
Expand Down

0 comments on commit 7449b67

Please sign in to comment.