diff options
| author | Alex Waygood <Alex.Waygood@Gmail.com> | 2022-02-13 00:04:48 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-13 00:04:48 (GMT) |
| commit | 50cf4991c49e19f917305dd7b9c71085c11edddb (patch) | |
| tree | 36f25921a7485f04d45e6609c492bd7c72696cde /Lib/idlelib/idle_test/test_util.py | |
| parent | b70690bb37cc4bac695051484734eede0c1f9ada (diff) | |
| download | cpython-50cf4991c49e19f917305dd7b9c71085c11edddb.zip cpython-50cf4991c49e19f917305dd7b9c71085c11edddb.tar.gz cpython-50cf4991c49e19f917305dd7b9c71085c11edddb.tar.bz2 | |
bpo-45447: Add syntax highlighting for `.pyi` files in IDLE (GH-28950)
Also add .pyi to the python extensions in the "File-open" and "File-save" dialogues.
Add util.py to contain objects that are used in multiple idlelib modules
and have no dependencies on any of them.
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/idle_test/test_util.py')
| -rw-r--r-- | Lib/idlelib/idle_test/test_util.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_util.py b/Lib/idlelib/idle_test/test_util.py new file mode 100644 index 0000000..20721fe --- /dev/null +++ b/Lib/idlelib/idle_test/test_util.py @@ -0,0 +1,14 @@ +"""Test util, coverage 100%""" + +import unittest +from idlelib import util + + +class UtilTest(unittest.TestCase): + def test_extensions(self): + for extension in {'.pyi', '.py', '.pyw'}: + self.assertIn(extension, util.py_extensions) + + +if __name__ == '__main__': + unittest.main(verbosity=2) |
