From 45c62a8e86bbd35a50fefe33248b01f6482982a8 Mon Sep 17 00:00:00 2001 From: Zhongyue Luo Date: Sun, 15 Jan 2012 11:31:23 -0500 Subject: Exception raise error Fixes bug #916827 The reason for ignoring W602 is explained at https://github.com/openstack/nova/blob/master/run_tests.sh#L101 Change-Id: I2e12e3ababcfd0de15903c47eef27f5e514ee427 --- keystone/tools/buffout.py | 2 +- run_tests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keystone/tools/buffout.py b/keystone/tools/buffout.py index e0202c0e..cf6e32ac 100644 --- a/keystone/tools/buffout.py +++ b/keystone/tools/buffout.py @@ -24,7 +24,7 @@ class OutputBuffer(): if exc_type is None: self.stop() else: - raise + raise exc_type, exc_value, traceback def __unicode__(self): return self._contents diff --git a/run_tests.sh b/run_tests.sh index e943bd8b..c587c5e1 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -146,7 +146,7 @@ function run_pep8 { srcfiles+=" keystone examples tools setup.py run_tests.py" # Just run PEP8 in current environment ${wrapper} pep8 --repeat --show-pep8 --show-source \ - --ignore=E202,E111 \ + --ignore=E202,E111,W602 \ --exclude=vcsversion.py,$GLOBIGNORE ${srcfiles} } -- cgit