Fix pep8 E701 multiple statements on one line (colon)

pull/1093/head
Lee Clemens 2015-06-26 12:11:49 -04:00
parent 1a98e15328
commit fe5e7a023e
1 changed files with 6 additions and 3 deletions

View File

@ -66,7 +66,8 @@ class SetupTest(unittest.TestCase):
" -- cannot locate setup.py") " -- cannot locate setup.py")
def testSetupInstallRoot(self): def testSetupInstallRoot(self):
if not self.setup: return # if verbose skip didn't work out if not self.setup:
return # if verbose skip didn't work out
tmp = tempfile.mkdtemp() tmp = tempfile.mkdtemp()
try: try:
os.system("%s %s install --root=%s >/dev/null" os.system("%s %s install --root=%s >/dev/null"
@ -136,8 +137,10 @@ class TestsUtilsTest(unittest.TestCase):
raise ValueError() raise ValueError()
def deep_function(i): def deep_function(i):
if i: deep_function(i-1) if i:
else: func_raise() deep_function(i-1)
else:
func_raise()
try: try:
print deep_function(3) print deep_function(3)