[Python-checkins] r80035 - python/trunk/Lib/test/test_winsound.py

mark.dickinson python-checkins at python.org
Tue Apr 13 13:37:23 CEST 2010


Author: mark.dickinson
Date: Tue Apr 13 13:37:23 2010
New Revision: 80035

Log:
In test_winsound, don't try to import _winreg until after checking that winsound is supported.

Modified:
   python/trunk/Lib/test/test_winsound.py

Modified: python/trunk/Lib/test/test_winsound.py
==============================================================================
--- python/trunk/Lib/test/test_winsound.py	(original)
+++ python/trunk/Lib/test/test_winsound.py	Tue Apr 13 13:37:23 2010
@@ -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"""


More information about the Python-checkins mailing list