test_install : removed commented code
This commit is contained in:
		| @@ -22,11 +22,10 @@ | |||||||
| # License along with this program; if not, write to the Free Software | # License along with this program; if not, write to the Free Software | ||||||
| # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||||||
| ############################################################################## | ############################################################################## | ||||||
|  | import StringIO | ||||||
| import collections | import collections | ||||||
| from contextlib import contextmanager | from contextlib import contextmanager | ||||||
|  |  | ||||||
| import StringIO |  | ||||||
|  |  | ||||||
| FILE_REGISTRY = collections.defaultdict(StringIO.StringIO) | FILE_REGISTRY = collections.defaultdict(StringIO.StringIO) | ||||||
|  |  | ||||||
| # Monkey-patch open to write module files to a StringIO instance | # Monkey-patch open to write module files to a StringIO instance | ||||||
| @@ -45,7 +44,6 @@ def mock_open(filename, mode): | |||||||
|         handle.close() |         handle.close() | ||||||
|  |  | ||||||
| import os | import os | ||||||
| import itertools |  | ||||||
| import unittest | import unittest | ||||||
|  |  | ||||||
| import spack | import spack | ||||||
| @@ -88,10 +86,6 @@ def traverse(self, order=None): | |||||||
|         for _, spec in self._dependencies.items(): |         for _, spec in self._dependencies.items(): | ||||||
|             yield spec.spec |             yield spec.spec | ||||||
|         yield self |         yield self | ||||||
|         #from_iterable = itertools.chain.from_iterable |  | ||||||
|         #allDeps = from_iterable(i.traverse() |  | ||||||
|         #                        for i in self.dependencies()) |  | ||||||
|         #return set(itertools.chain([self], allDeps)) |  | ||||||
|  |  | ||||||
|     def dag_hash(self): |     def dag_hash(self): | ||||||
|         return self.hash |         return self.hash | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 alalazo
					alalazo