mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -5,9 +5,9 @@ from test import test_support
|
|||
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…
Add table
Add a link
Reference in a new issue