summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_inspect.py
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2021-12-10 23:05:23 (GMT)
committerGitHub <noreply@github.com>2021-12-10 23:05:23 (GMT)
commit810c1769f1c24ed907bdf3cc1086db4e602a28ae (patch)
tree22c3c684aacf875042c5783ec72560f293e58acd /Lib/test/test_inspect.py
parent0fe104fce7da709edddb701baa2249e3275db1fd (diff)
downloadcpython-810c1769f1c24ed907bdf3cc1086db4e602a28ae.zip
cpython-810c1769f1c24ed907bdf3cc1086db4e602a28ae.tar.gz
cpython-810c1769f1c24ed907bdf3cc1086db4e602a28ae.tar.bz2
bpo-27062: add `__all__` to inspect module (GH-30003)
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r--Lib/test/test_inspect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index 33665cf..c25256d 100644
--- a/Lib/test/test_inspect.py
+++ b/Lib/test/test_inspect.py
@@ -107,6 +107,9 @@ class IsTestBase(unittest.TestCase):
continue
self.assertFalse(other(obj), 'not %s(%s)' % (other.__name__, exp))
+ def test__all__(self):
+ support.check__all__(self, inspect, not_exported=("k", "v", "mod_dict", "modulesbyfile"))
+
def generator_function_example(self):
for i in range(2):
yield i