Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Jul 31, 2016
1 parent d3b21c4 commit 7adb047
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ def test_coerce_pycache_to_old_style():

os.chdir(tmp)
for root, dirs, files in os.walk(tmp):
fs = [os.path.join(root, f) for f in files]
fs = [os.path.join(root, _) for _ in files]
post.coerce_pycache_to_old_style(fs)
try:
assert os.path.isfile(os.path.join(tmp, 'test.pyc')), os.listdir(tmp)
assert os.path.isfile(os.path.join(tmp, 'testdir', 'test.pyc')), os.listdir(os.path.join(tmp, 'testdir'))
assert os.path.isfile(os.path.join(tmp, 'testdir', 'test.pyc')), \
os.listdir(os.path.join(tmp, 'testdir'))
for root, dirs, files in os.walk(tmp):
assert '__pycache__' not in dirs
except:
Expand Down

0 comments on commit 7adb047

Please sign in to comment.