test_winsound shouldn't crash when ctypes isn't available
This commit is contained in:
parent
b73caab436
commit
817c9df7e5
|
@ -6,9 +6,9 @@ support.requires('audio')
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import ctypes
|
|
||||||
|
|
||||||
winsound = support.import_module('winsound')
|
winsound = support.import_module('winsound')
|
||||||
|
ctypes = support.import_module('ctypes')
|
||||||
import winreg
|
import winreg
|
||||||
|
|
||||||
def has_sound(sound):
|
def has_sound(sound):
|
||||||
|
|
Loading…
Reference in New Issue