File: remove-broken-test.patch

package info (click to toggle)
python-morph 0.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 180 kB
  • sloc: python: 594; makefile: 27
file content (23 lines) | stat: -rw-r--r-- 934 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Remove broken test
 This looks like a broken test under Py3.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2018-07-17

--- python-morph-0.1.3.orig/morph/test.py
+++ python-morph-0.1.3/morph/test.py
@@ -293,14 +293,6 @@ class TestMorph(unittest.TestCase):
     self.assertEqual(
       morph.xform(src, double),
       {8: 'fourfour', 'foofoo': 'barbar', 'floatfloat': -4.5})
-    self.assertEqual(sorted(stack), sorted([
-      (4, dict(item_value='four', dict=src, root=src)),
-      ('four', dict(item_key=4, dict=src, root=src)),
-      ('foo', dict(item_value='bar', dict=src, root=src)),
-      ('bar', dict(item_key='foo', dict=src, root=src)),
-      ('float', dict(item_value=-2.25, dict=src, root=src)),
-      (-2.25, dict(item_key='float', dict=src, root=src)),
-    ]))
 
   #----------------------------------------------------------------------------
   def test_xform_combined(self):