]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes nits in check_no_contextlib_nested
authorChangBo Guo(gcb) <eric.guo@easystack.cn>
Wed, 18 Mar 2015 12:18:52 +0000 (20:18 +0800)
committerChangBo Guo(gcb) <eric.guo@easystack.cn>
Thu, 19 Mar 2015 11:32:08 +0000 (19:32 +0800)
commit36bbc90a369762193d6fcd5fb3e88c6cdd9980fe
tree58026a0dbae322d7e222c7e9004f103a3c3b2018
parent4f7afb257bc290058f6f02d6f35ac4e05c09a86c
Fixes nits in check_no_contextlib_nested

Currently, check will not work if nested is imported like below:

from contextlib import nested

with nested(......

This commit adds the case and add unit test for it.

Change-Id: I60aa280054d9950b1d2edc9e23505c3395f96fb0
cinder/hacking/checks.py
cinder/tests/test_hacking.py