[Debian-med-packaging] Bug#811002: Please help tracking down this issue in test suite [Was: Bug#811002: python-ruffus: FTBFS: sre_constants.error: unbalanced parenthesis at position 2]

Andreas Tille tille at debian.org
Fri Jan 15 09:15:14 UTC 2016


Hi Dmitry,

thanks for your response.

On Fri, Jan 15, 2016 at 11:20:08AM +0300, Dmitry Shachnev wrote:
> > [...]
> >   
> >   First differing element 1:
> >   test1: regular expression regex('.*)') is malformed
> >   [sre_constants.error: (unbalanced parenthesis at position 2)]
> >   test1: regular expression regex('.*)') is malformed
> >   [sre_constants.error: (unbalanced parenthesis)]
> >   
> >     ('Dummy Task',
> >      "test1: regular expression regex('.*)') is malformed\n"
> >   -  '[sre_constants.error: (unbalanced parenthesis at position 2)]')
> >   ?                                                --------------
> >   
> >   +  '[sre_constants.error: (unbalanced parenthesis)]')
> 
> This is definitely a change between Python 3.4 and 3.5 (exception string was
> improved), see:
> 
> https://hg.python.org/cpython/rev/292c4d853662
> http://bugs.python.org/22578

Hmmm, I think I misunderstood your hint since my attempt to fix the
issue[1] did not worked but rather endet up in:


======================================================================
FAIL: test_compile_regex (test_ruffus_utility.Test_compile_regex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_ruffus_utility.py", line 262, in test_compile_regex
    self.assertEqual(e.args, ('Dummy Task', "test1: regular expression regex('.*)') is malformed\n[sre_constants.error: (unbalanced parenthesis at position 2)]"))
AssertionError: Tuples differ: ('Dummy Task', "test1: regular... != ('Dummy Task', "test1: regular...

First differing element 1:
test1: regular expression regex('.*)') is malformed
[sre_constants.error: (unbalanced parenthesis)]
test1: regular expression regex('.*)') is malformed
[sre_constants.error: (unbalanced parenthesis at position 2)]

  ('Dummy Task',
-  "test1: regular expression regex('.*)') is malformed\n[sre_constants.error: (unbalanced parenthesis)]")
+  "test1: regular expression regex('.*)') is malformed\n[sre_constants.error: (unbalanced parenthesis at position 2)]")
?                                                                                                     ++++++++++++++


----------------------------------------------------------------------
Ran 18 tests in 0.007s

FAILED (failures=1)


What am I doing wrong?

Kind regards

      Andreas.


[1] https://anonscm.debian.org/cgit/debian-med/python-ruffus.git/tree/debian/patches/python-3.5.patch

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list