Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2010 01:13:11 GMT
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 178413 for review
Message-ID:  <201005180113.o4I1DBsN033450@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@178413?ac=10

Change 178413 by gcooper@gcooper-bioshock on 2010/05/18 01:12:19

	We aren't necessarily at the test scope, and don't forget to import
	ctypes.

Affected files ...

.. //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/tools/regression/lib/libpkg/tests/__init__.py#3 edit

Differences ...

==== //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/tools/regression/lib/libpkg/tests/__init__.py#3 (text+ko) ====

@@ -4,6 +4,8 @@
 $FreeBSD$
 """
 
+import ctypes
+
 # NOTE (gcooper): keep this up to date with .../lib/libpkg/Makefile .
 SHLIB_MAJOR = 0
 
@@ -15,7 +17,7 @@
 def setup_package():
     """ Setup libpkg via ctypes. """
     global LIBPKG
-    LIBPKG = ctypes.CDLL(tests.LIBPKG_S)
+    LIBPKG = ctypes.CDLL(LIBPKG_S)
 
 def teardown_package():
     """ Teardown libpkg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005180113.o4I1DBsN033450>