File: 0002-Remove-test-for-today-s-date-in-doctest.patch

package info (click to toggle)
python-recurring-ical-events 3.3.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,128 kB
  • sloc: python: 2,896; sh: 15; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Jochen Sprickerhof <jspricke@debian.org>
Date: Sun, 3 Nov 2024 10:03:32 +0100
Subject: Remove test for today's date in doctest

The return value depends on the actual date thus making the test flaky.
---
 README.rst | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/README.rst b/README.rst
index df43672..397155e 100644
--- a/README.rst
+++ b/README.rst
@@ -177,10 +177,6 @@ The start and end are inclusive. As an example: if an event is longer than one d
     0
     >>> len(query.at(datetime.date(2023, 1, 1))) # the first day in 2023
     0
-    >>> len(query.at(datetime.date.today()))     # today
-    0
-    >>> len(query.at(datetime.datetime.now()))   # this exact second
-    0
 
 The resulting ``events`` are a list of `icalendar events <https://icalendar.readthedocs.io/en/latest/api.html#icalendar.cal.Event>`_, see below.