]> granicus.if.org Git - python/commitdiff
Merged revisions 83927 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 10 Aug 2010 00:48:49 +0000 (00:48 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 10 Aug 2010 00:48:49 +0000 (00:48 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83927 | antoine.pitrou | 2010-08-10 02:45:32 +0200 (mar., 10 août 2010) | 3 lines

  test_winsound shouldn't crash when ctypes isn't available
........

Lib/test/test_winsound.py

index bd950489158d659cfcaf8c9cd6068d7ac736a73e..be0e6256292479d46d367b66d40610f494454d90 100644 (file)
@@ -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):