diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-05-04 14:47:54 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-05-04 14:47:54 (GMT) |
commit | 4e59af7abddc7c43a6f52b571fcd65fc55e5f861 (patch) | |
tree | ca003819c375963050f61fdc4cad1e60bd4aeb0c /Lib/test/test_winreg.py | |
parent | a8bc7fd559fa231729ade7bac04af64353ab09cd (diff) | |
parent | 28faf03d4474d184b30a8013c70845b6600d456d (diff) | |
download | cpython-4e59af7abddc7c43a6f52b571fcd65fc55e5f861.zip cpython-4e59af7abddc7c43a6f52b571fcd65fc55e5f861.tar.gz cpython-4e59af7abddc7c43a6f52b571fcd65fc55e5f861.tar.bz2 |
#7855: merge with 3.3.
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 38e76aa..ef4ce55 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, |