From f5e907e62f1e0d5c756603523ede3002c032b7b0 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" Date: Fri, 22 Oct 2010 23:16:40 +0100 Subject: Use the day, in a day --- pykolab/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pykolab/tests') 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 -- cgit v1.1