Update hacking version

yaml2ical was using a very old version that started to break with
newer Python, so it's time to upgrade. This requires a few adjustments
to quiet new warnings.

Change-Id: Ib081dcfeca7c40f877059793dab58d00a7b0d53e
This commit is contained in:
Thierry Carrez 2021-07-15 14:49:54 +02:00
parent 90ddef2d8c
commit b413607a97
3 changed files with 83 additions and 83 deletions

View File

@ -1,4 +1,4 @@
hacking>=0.11.0,<0.12 # Apache-2.0
hacking>=3.2.0 # Apache-2.0
coverage>=3.6 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD

View File

@ -183,15 +183,15 @@ class MeetingTestCase(unittest.TestCase):
summary = 'OpenStack Subteam 8 Meeting'
patterns = []
# The "main" meeting should have an exdate
patterns.append(re.compile('.*exdate:\s*20150810T120000', re.I))
patterns.append(re.compile(r'.*exdate:\s*20150810T120000', re.I))
# The "main" meeting should start on 2015-08-13
patterns.append(re.compile('.*dtstart;.*:20150803T120000Z', re.I))
patterns.append(re.compile(r'.*dtstart;.*:20150803T120000Z', re.I))
# The "main" meeting should have a simple summary
patterns.append(re.compile('.*summary:\s*%s' % summary, re.I))
patterns.append(re.compile(r'.*summary:\s*%s' % summary, re.I))
# The "skipped" meeting should start on 20150806
patterns.append(re.compile('.*dtstart;.*:20150810T120000Z', re.I))
patterns.append(re.compile(r'.*dtstart;.*:20150810T120000Z', re.I))
# The "skipped" meeting should say include 'CANCELLED' and the datetime
patterns.append(re.compile('.*summary:\s*CANCELLED.*20150810T120000Z',
patterns.append(re.compile(r'.*summary:\s*CANCELLED.*20150810T120000Z',
re.I))
m = meeting.load_meetings(meeting_yaml)[0]
cal = ical.Yaml2IcalCalendar()