def test_no_stdlib_collections():
 import collections
 matplotlib = import_module('matplotlib', __import__kwargs={'fromlist': ['cm', 'collections']}, min_module_version='1.1.0', catch=(RuntimeError,))
 if matplotlib:
  assert (collections != matplotlib.collections)

def test_no_stdlib_collections ( ) : import collections matplotlib = import_module ( 'matplotlib' , __import__kwargs = { 'fromlist' : [ 'cm' , 'collections' ] } , min_module_version = '1.1.0' , catch = ( RuntimeError , ) ) if matplotlib : assert ( collections != matplotlib . collections )
make sure we get the right collections when it is not part of a larger list .