diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-05-04 14:46:23 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-05-04 14:46:23 (GMT) |
commit | 28faf03d4474d184b30a8013c70845b6600d456d (patch) | |
tree | 990c34f6d2b4c5b0ed8a47690f7dcf8665d2a940 /Lib/test/test_winreg.py | |
parent | 59115aa7c9488baae1b706f077dcd84a558c0097 (diff) | |
download | cpython-28faf03d4474d184b30a8013c70845b6600d456d.zip cpython-28faf03d4474d184b30a8013c70845b6600d456d.tar.gz cpython-28faf03d4474d184b30a8013c70845b6600d456d.tar.bz2 |
#7855: Add tests for ctypes/winreg for issues found in IronPython. Initial patch by Dino Viehland.
Diffstat (limited to 'Lib/test/test_winreg.py')
-rw-r--r-- | Lib/test/test_winreg.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py index 354826c..cb4cde9 100644 --- a/Lib/test/test_winreg.py +++ b/Lib/test/test_winreg.py @@ -457,6 +457,9 @@ class Win64WinregTests(BaseWinregTests): DeleteKeyEx(HKEY_CURRENT_USER, test_reflect_key_name, KEY_WOW64_32KEY, 0) + def test_exception_numbers(self): + with self.assertRaises(FileNotFoundError) as ctx: + QueryValue(HKEY_CLASSES_ROOT, 'some_value_that_does_not_exist') def test_main(): support.run_unittest(LocalWinregTests, RemoteWinregTests, |