diff options
author | Brett Cannon <brett@python.org> | 2016-06-24 21:14:44 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2016-06-24 21:14:44 (GMT) |
commit | a32c4d05312858f2468ad9d7ce53c52c4bcae2b3 (patch) | |
tree | dadc5e1997b1e3c185434397ab0a31288ecb6c32 /Lib/test/test_os.py | |
parent | 620d9c7200b54836c708d82e3b09c04152e836fc (diff) | |
download | cpython-a32c4d05312858f2468ad9d7ce53c52c4bcae2b3.zip cpython-a32c4d05312858f2468ad9d7ce53c52c4bcae2b3.tar.gz cpython-a32c4d05312858f2468ad9d7ce53c52c4bcae2b3.tar.bz2 |
Issue #27038: Expose DirEntry as os.DirEntry.
Thanks to Jelle Zijlstra for the code portion of the patch.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 869985e..4ade4aa 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -2854,6 +2854,7 @@ class TestScandir(unittest.TestCase): self.assertEqual(stat1, stat2) def check_entry(self, entry, name, is_dir, is_file, is_symlink): + self.assertIsInstance(entry, os.DirEntry) self.assertEqual(entry.name, name) self.assertEqual(entry.path, os.path.join(self.path, name)) self.assertEqual(entry.inode(), |