diff options
| author | Zhongyue Luo <lzyeval@gmail.com> | 2012-01-15 11:31:23 -0500 |
|---|---|---|
| committer | Zhongyue Luo <lzyeval@gmail.com> | 2012-01-15 11:35:33 -0500 |
| commit | 45c62a8e86bbd35a50fefe33248b01f6482982a8 (patch) | |
| tree | c31035b63c17d65f62176201a96e8ff4e7dd0368 | |
| parent | 4d85d09f8981881526e92632968c330631196061 (diff) | |
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
| -rw-r--r-- | keystone/tools/buffout.py | 2 | ||||
| -rwxr-xr-x | 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} } |
