commit | 2c4798b1fdb10f46488c35f9b8da7f505b711a84 | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Tue Apr 13 11:37:23 2010 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Tue Apr 13 11:37:23 2010 +0000 |
tree | 75af3ab58ed1234d9e96c895ab4d63b04ee412e3 | |
parent | d0731072a9b34603e6cec0299008d46a8cbf0059 [diff] [blame] |
In test_winsound, don't try to import _winreg until after checking that winsound is supported.
diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index 10e01b4..228dfa1 100644 --- a/Lib/test/test_winsound.py +++ b/Lib/test/test_winsound.py
@@ -5,9 +5,9 @@ import time import os import subprocess -import _winreg winsound = test_support.import_module('winsound') +import _winreg def has_sound(sound): """Find out if a particular event is configured with a default sound"""