[Scipy-svn] r6738 - trunk/scipy/linalg/tests

scipy-svn@scip... scipy-svn@scip...
Sat Sep 11 19:55:09 CDT 2010


Author: ptvirtan
Date: 2010-09-11 19:55:08 -0500 (Sat, 11 Sep 2010)
New Revision: 6738

Modified:
   trunk/scipy/linalg/tests/test_build.py
Log:
3K: linalg: fix a bytes vs strings issue in a test

Modified: trunk/scipy/linalg/tests/test_build.py
===================================================================
--- trunk/scipy/linalg/tests/test_build.py	2010-09-12 00:54:54 UTC (rev 6737)
+++ trunk/scipy/linalg/tests/test_build.py	2010-09-12 00:55:08 UTC (rev 6738)
@@ -4,6 +4,7 @@
 
 import numpy as np
 from numpy.testing import TestCase, dec
+from numpy.compat import asbytes
 
 from scipy.linalg import flapack
 
@@ -29,7 +30,7 @@
     def grep_dependencies(self, file, deps):
         stdout = self.get_dependencies(file)
 
-        rdeps = dict([(dep, re.compile(dep)) for dep in deps])
+        rdeps = dict([(asbytes(dep), re.compile(asbytes(dep))) for dep in deps])
         founds = []
         for l in stdout.splitlines():
             for k, v in rdeps.items():



More information about the Scipy-svn mailing list