Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix unit test
  • Loading branch information
nyalldawson committed Jun 13, 2018
1 parent 1a226e6 commit 2320a04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/python/test_qgsrange.py
Expand Up @@ -217,8 +217,9 @@ def testIsEmpty(self):
range = QgsDateRange(QDate(2010, 3, 1), QDate())
self.assertFalse(range.isEmpty())

# check QgsDateRange docs - this is treated as an infinite range, so is NOT empty
range = QgsDateRange(QDate(), QDate())
self.assertTrue(range.isEmpty())
self.assertFalse(range.isEmpty())

range = QgsDateRange(QDate(2017, 3, 1), QDate(2010, 6, 2))
self.assertTrue(range.isEmpty())
Expand Down

0 comments on commit 2320a04

Please sign in to comment.