Package: python-freshen
Version: 0.2-1
Severity: normal
Tags: patch

Hi!

Thanks for packaging python-freshen =)

When a test fails with an exception (other than an assertion exception),
freshen does not give any useful hint, other than the generic message
"ExceptionWrapper":

    $ PYTHONPATH=.:.. nosetests --with-freshen  --detailed-errors -l debug 
service-addition.feature
    /usr/bin/nosetests:5: UserWarning: Module paste was already imported from 
None, but
    /usr/lib/python2.6/dist-packages is being added to sys.path
      from pkg_resources import load_entry_point
      E
      ======================================================================
      ERROR: service addition: service addition-01
      ----------------------------------------------------------------------
      ExceptionWrapper

      ----------------------------------------------------------------------
      Ran 1 test in 0.006s

      FAILED (errors=1)

I can work-around this with the patch below.

--- noseplugin.py.orig  2011-07-22 18:34:11.000000000 +0200
+++ noseplugin.py       2011-07-22 18:34:31.000000000 +0200
@@ -70,8 +70,6 @@
                 self.step_runner.run_step(step)
             except (AssertionError, UndefinedStepImpl, ExceptionWrapper):
                 raise
-            except:
-                raise ExceptionWrapper(sys.exc_info(), step)

             for hook_impl in 
reversed(self.step_registry.get_hooks('after_step', self.scenario.get_tags())):
                 hook_impl.run(self.scenario)

cheers,
serafeim


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.39-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-freshen depends on:
ii  python                        2.6.7-1    interactive high-level object-orie
ii  python-nose                   1.0.0-1    test discovery and running for Pyt
ii  python-pyparsing              1.5.2-2    Python parsing module
ii  python-support                1.0.14     automated rebuilding support for P
ii  python-yaml                   3.10-1     YAML parser and emitter for Python

python-freshen recommends no packages.

python-freshen suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/pyshared/freshen/noseplugin.py (from 
python-freshen package)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to