aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_script_helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_script_helper.py')
-rw-r--r--Lib/test/test_script_helper.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_script_helper.py b/Lib/test/test_script_helper.py
index f7871fd3b77..eeea6c4842b 100644
--- a/Lib/test/test_script_helper.py
+++ b/Lib/test/test_script_helper.py
@@ -74,8 +74,7 @@ class TestScriptHelperEnvironment(unittest.TestCase):
"""Code coverage for interpreter_requires_environment()."""
def setUp(self):
- self.assertTrue(
- hasattr(script_helper, '__cached_interp_requires_environment'))
+ self.assertHasAttr(script_helper, '__cached_interp_requires_environment')
# Reset the private cached state.
script_helper.__dict__['__cached_interp_requires_environment'] = None