diff --git a/test/unit/test_hist_config.py b/test/unit/test_hist_config.py index 9b701439..a43f2e50 100644 --- a/test/unit/test_hist_config.py +++ b/test/unit/test_hist_config.py @@ -27,14 +27,6 @@ _TMP_DIR = os.path.join(__TEST_DIR, "tmp") _LOGGER = logging.getLogger(__name__) -# Find python version -PY3 = sys.version_info[0] > 2 -if PY3: - def __FILE_OPEN(x): return open(x, 'r', encoding='utf-8') -else: - def __FILE_OPEN(x): return open(x, 'r') -# End if - if not os.path.exists(__CIME_CONFIG_DIR): raise ImportError("Cannot find /cime_config")