Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(84346)

Unified Diff: Lib/test/test_imp.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_importlib/extension/test_loader.py ('k') | Lib/test/test_io.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_imp.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/test/test_imp.py Wed Mar 02 00:01:35 2016 +0000
@@ -15,17 +15,17 @@ with warnings.catch_warnings():
warnings.simplefilter('ignore', DeprecationWarning)
import imp
def requires_load_dynamic(meth):
"""Decorator to skip a test if not running under CPython or lacking
imp.load_dynamic()."""
meth = support.cpython_only(meth)
- return unittest.skipIf(not hasattr(imp, 'load_dynamic'),
+ return unittest.skipIf(not getattr(imp, 'load_dynamic'),
'imp.load_dynamic() required')(meth)
@unittest.skipIf(_thread is None, '_thread module is required')
class LockTests(unittest.TestCase):
"""Very basic test of import lock functions."""
« no previous file with comments | « Lib/test/test_importlib/extension/test_loader.py ('k') | Lib/test/test_io.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+