From: Antoine Pitrou Date: Tue, 10 Aug 2010 00:45:32 +0000 (+0000) Subject: test_winsound shouldn't crash when ctypes isn't available X-Git-Tag: v3.2a2~380 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=817c9df7e518e563de90e9659206f31072f96157;p=thirdparty%2FPython%2Fcpython.git test_winsound shouldn't crash when ctypes isn't available --- diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index bd950489158d..be0e62562924 100644 --- a/Lib/test/test_winsound.py +++ b/Lib/test/test_winsound.py @@ -6,9 +6,9 @@ support.requires('audio') import time import os import subprocess -import ctypes winsound = support.import_module('winsound') +ctypes = support.import_module('ctypes') import winreg def has_sound(sound):