summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/tests/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/tests/__init__.py b/pykolab/tests/__init__.py
index 2e7994b..e4b200c 100644
--- a/pykolab/tests/__init__.py
+++ b/pykolab/tests/__init__.py
@@ -64,7 +64,7 @@ class Tests(object):
success = False
while not success:
try:
- myday = mydate.replace(day=random.randint(1,31))
+ myday = mydate.replace(day=random.randint(1,31)).day
success = True
except:
success = False