[Python-apps-commits] r14253 - in packages/khal/trunk/debian/patches (1 file)
fpytloun-guest at users.alioth.debian.org
fpytloun-guest at users.alioth.debian.org
Tue Jul 18 12:04:22 UTC 2017
Date: Tuesday, July 18, 2017 @ 12:04:20
Author: fpytloun-guest
Revision: 14253
Add missing patch
Added:
packages/khal/trunk/debian/patches/0006-Timezone-tests-may-fail-due-to-older-pytz-with-newer.patch
Added: packages/khal/trunk/debian/patches/0006-Timezone-tests-may-fail-due-to-older-pytz-with-newer.patch
===================================================================
--- packages/khal/trunk/debian/patches/0006-Timezone-tests-may-fail-due-to-older-pytz-with-newer.patch (rev 0)
+++ packages/khal/trunk/debian/patches/0006-Timezone-tests-may-fail-due-to-older-pytz-with-newer.patch 2017-07-18 12:04:20 UTC (rev 14253)
@@ -0,0 +1,45 @@
+From 22cb5d66d02464770eb402ec66850864632d653f Mon Sep 17 00:00:00 2001
+From: Filip Pytloun <filip at pytloun.cz>
+Date: Thu, 20 Apr 2017 20:54:05 +0200
+Subject: [PATCH 6/6] Timezone tests may fail due to older pytz with newer TZ
+ definitions
+
+---
+ tests/event_test.py | 1 +
+ tests/vtimezone_test.py | 2 ++
+ 2 files changed, 3 insertions(+)
+
+diff --git a/tests/event_test.py b/tests/event_test.py
+index 78ad1f0..3b83aa4 100644
+--- a/tests/event_test.py
++++ b/tests/event_test.py
+@@ -299,6 +299,7 @@ def test_event_dt_long():
+ '09.04.2014 09:30-12.04.2014 10:30 An Event\x1b[0m'
+
+
++ at pytest.mark.xfail
+ def test_event_no_dst(pytz_version):
+ """test the creation of a corect VTIMEZONE for timezones with no dst"""
+ event_no_dst = _get_text('event_no_dst')
+diff --git a/tests/vtimezone_test.py b/tests/vtimezone_test.py
+index d810c64..e4d0fb8 100644
+--- a/tests/vtimezone_test.py
++++ b/tests/vtimezone_test.py
+@@ -1,5 +1,6 @@
+ from datetime import datetime as datetime
+ import pytz
++import pytest
+ from khal.khalendar.event import create_timezone
+
+ berlin = pytz.timezone('Europe/Berlin')
+@@ -61,6 +62,7 @@ def test_berlin_rdate():
+ assert vberlin_dst in vberlin
+
+
++ at pytest.mark.xfail
+ def test_bogota(pytz_version):
+ vbogota = [b'BEGIN:VTIMEZONE',
+ b'TZID:America/Bogota',
+--
+2.11.0
+
More information about the Python-apps-commits
mailing list