From 7289630f5c158551084dbfe2e001da3eca8db4b9 2021-10-08 09:51:45 From: Bibo Hao Date: 2021-10-08 09:51:45 Subject: [PATCH] rm redundant if --- diff --git a/IPython/core/tests/test_paths.py b/IPython/core/tests/test_paths.py index 524a74d..6b39b9c 100644 --- a/IPython/core/tests/test_paths.py +++ b/IPython/core/tests/test_paths.py @@ -160,7 +160,7 @@ def test_get_ipython_dir_7(): @skip_win32 def test_get_ipython_dir_8(): """test_get_ipython_dir_8, test / home directory""" - if not os.path.isdir('/') or not os.access('/', os.W_OK): + if not os.access('/', os.W_OK): # test only when HOME directory actually writable return