From 27c5646eb3f924fc845c2e6688933c55f7c671e1 2014-12-17 19:38:46 From: Scott Sanderson Date: 2014-12-17 19:38:46 Subject: [PATCH] STY: Define dirs as a single expression. --- diff --git a/IPython/html/services/contents/tests/test_contents_api.py b/IPython/html/services/contents/tests/test_contents_api.py index ac8f142..b37e51d 100644 --- a/IPython/html/services/contents/tests/test_contents_api.py +++ b/IPython/html/services/contents/tests/test_contents_api.py @@ -119,8 +119,8 @@ class APITest(NotebookTestBase): ] hidden_dirs = ['.hidden', '__pycache__'] - dirs = uniq_stable([py3compat.cast_unicode(d) for (d,n) in dirs_nbs]) - del dirs[0] # remove '' + # Don't include root dir. + dirs = uniq_stable([py3compat.cast_unicode(d) for (d,n) in dirs_nbs[1:]]) top_level_dirs = {normalize('NFC', d.split('/')[0]) for d in dirs} @staticmethod