mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
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>
(cherry picked from commit 50cf4991c4
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
b7a65c939c
commit
9fabcfbe68
10 changed files with 77 additions and 3 deletions
14
Lib/idlelib/idle_test/test_util.py
Normal file
14
Lib/idlelib/idle_test/test_util.py
Normal file
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue