summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-10-22 23:16:40 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-10-22 23:16:40 +0100
commitf5e907e62f1e0d5c756603523ede3002c032b7b0 (patch)
treee051eeef5346d6ddd844f8ee6a2a15060a9f3aaf
parent7f9812c072cf5d4f0088a592d6913a5bdddb6ba2 (diff)
downloadpykolab-f5e907e62f1e0d5c756603523ede3002c032b7b0.tar.gz
Use the day, in a day
-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