mirror of https://github.com/python/cpython.git
In test_winsound, don't try to import _winreg until after checking that winsound is supported.
This commit is contained in:
parent
d0731072a9
commit
2c4798b1fd
|
@ -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"""
|
||||
|
|
Loading…
Reference in New Issue