[Python-modules-commits] [python-parse-type] 01/02: Add patch to drop failing test that doesn't matter

Brian May bam at moszumanska.debian.org
Wed May 17 07:36:21 UTC 2017


This is an automated email from the git hooks/post-receive script.

bam pushed a commit to branch debian/master
in repository python-parse-type.

commit 604e41f38634ec73112bee8a31b7437ba2f1f5a3
Author: Brian May <brian at linuxpenguins.xyz>
Date:   Wed May 17 17:08:15 2017 +1000

    Add patch to drop failing test that doesn't matter
---
 .../0001-Drop-test_too_many_fields-tests.patch     | 30 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/0001-Drop-test_too_many_fields-tests.patch b/debian/patches/0001-Drop-test_too_many_fields-tests.patch
new file mode 100644
index 0000000..ad433f8
--- /dev/null
+++ b/debian/patches/0001-Drop-test_too_many_fields-tests.patch
@@ -0,0 +1,30 @@
+From: Brian May <brian at linuxpenguins.xyz>
+Date: Wed, 17 May 2017 17:03:25 +1000
+Subject: Drop test_too_many_fields tests
+
+Producing the TooManyFields exception was a sign of a limitation in the
+number of datetimefields we could parse. It doesn't appear to be an
+error that we are not generating this exception, rather it seems the
+limitations that once existed have been removed.
+
+For more information see:
+https://github.com/jenisys/parse_type/issues/7
+---
+ tests/test_parse_type_parse.py | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/tests/test_parse_type_parse.py b/tests/test_parse_type_parse.py
+index 23725f2..9374cd5 100644
+--- a/tests/test_parse_type_parse.py
++++ b/tests/test_parse_type_parse.py
+@@ -605,10 +605,6 @@ class TestParse(unittest.TestCase):
+         self.assertNotEqual(r, None)
+         self.assertEqual(r.fixed[21], 'spam')
+ 
+-    def test_too_many_fields(self):
+-        p = parse.compile('{:ti}' * 15)
+-        self.assertRaises(parse.TooManyFields, p.parse, '')
+-
+ 
+ class TestSearch(unittest.TestCase):
+     def test_basic(self):
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7939fae
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Drop-test_too_many_fields-tests.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-parse-type.git



More information about the Python-modules-commits mailing list