diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 2f6f7a9855ecdd..faa6002e630834 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -473,7 +473,7 @@ def test_customization_modules_on_startup(self): ('getsitepackages', 'sitecustomize') ] - if site.check_enableusersite(): + if site.ENABLE_USER_SITE: mod_info.append(('getusersitepackages', 'usercustomize'),) for func_name, module_name in mod_info: