~pythonregexp2.7/python/issue2636

« back to all changes in this revision

Viewing changes to Lib/ctypes/test/test_loading.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-05-24 16:05:21 UTC
  • mfrom: (39021.1.401 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080524160521-1xenj7p6u3wb89et
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
libc_name = None
8
8
if os.name == "nt":
9
 
    libc_name = "msvcrt"
 
9
    libc_name = find_library("c")
10
10
elif os.name == "ce":
11
11
    libc_name = "coredll"
12
12
elif sys.platform == "cygwin":
43
43
 
44
44
    if os.name in ("nt", "ce"):
45
45
        def test_load_library(self):
 
46
            self.failIf(libc_name is None)
46
47
            if is_resource_enabled("printing"):
47
48
                print find_library("kernel32")
48
49
                print find_library("user32")