File: remove-failing-test_xform_combined.patch

package info (click to toggle)
python-morph 0.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 196 kB
  • sloc: python: 579; makefile: 19
file content (34 lines) | stat: -rw-r--r-- 1,261 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
25
26
27
28
29
30
31
32
33
34
Description: Remove failing test_xform_combined()
 This test is failing in Python 3.8, because of bad dict ordering.
 No need to investigate further, the failing test doesn't mean the package
 is broken.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2020-02-18

--- python-morph-0.1.3.orig/morph/test.py
+++ python-morph-0.1.3/morph/test.py
@@ -294,23 +294,6 @@ class TestMorph(unittest.TestCase):
       morph.xform(src, double),
       {8: 'fourfour', 'foofoo': 'barbar', 'floatfloat': -4.5})
 
-  #----------------------------------------------------------------------------
-  def test_xform_combined(self):
-    stack = []
-    def double(value, **kws):
-      stack.append((value, kws))
-      return value * 2
-    src = {'key': [8, {'k2': -2}]}
-    self.assertEqual(
-      morph.xform(src, double),
-      {'keykey': [16, {'k2k2': -4}]})
-    self.assertEqual(stack, [
-      (8, dict(index=0, seq=[8, {'k2': -2}], root=src)),
-      (-2, dict(item_key='k2', dict={'k2': -2}, root=src)),
-      ('k2', dict(item_value=-2, dict={'k2': -2}, root=src)),
-      ('key', dict(item_value=[8, {'k2': -2}], dict=src, root=src)),
-    ])
-
 
 #------------------------------------------------------------------------------
 # end of $Id$