Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug in test

  • Loading branch information...
commit 4ec3a2d63590dc674a047eff8d048afbd7babff9 1 parent 278fb39
@ericpruitt authored
Showing with 6 additions and 0 deletions.
  1. +4 −0 CHANGELOG
  2. +2 −0  test/test_cronex.py
View
4 CHANGELOG
@@ -1,5 +1,9 @@
CHANGELOG
+2011.01.16; Sunday
+ Fixed a big that caused one of the tests to fail in certain months of the
+ year. The bug was only in the test, not the trigger code.
+
2010.12.14; Tuesday
Fixed mis-spelling of "annually" and rewrote much of the SYNTAX
documentation.
View
2  test/test_cronex.py
@@ -81,6 +81,8 @@ def test_periodics_month(self):
now_tuple = time.gmtime(now)
curmon = now_tuple[1]
thnmon = then[1]
+ if curmon < thnmon:
+ curmon += 12
per = 36 + curmon - thnmon
testex = cronex.CronExpression("* * * %%%i *" % per)
self.assertFalse(testex.check_trigger(now_tuple[:5]))
Please sign in to comment.
Something went wrong with that request. Please try again.