old_contents: # -*- coding: utf-8 -*-
  
  from __future__ import absolute_import, unicode_literals
  
  import logging
  
  import six
  
  __all__ = ['generated_symbols']
  
  
  def generated_symbols(code):
      from soapfish import xsd  # import may not be generated.
  
      locals_ = dict(locals())
  
      try:
          # Let's trust our own code generation...
          six.exec_(code, {'xsd': xsd}, locals_)
      except Exception:
          logging.warning('Code could not be imported:\n%s', code)
          raise
  
      variables = set(locals_).difference(locals())
  
      schemas, symbols = [], {}
      for name in variables:
          symbol = locals_[name]
          symbols[name] = symbol
          if isinstance(symbol, xsd.Schema):
              schemas.append(symbol)
      return schemas, symbols
  
new_contents: # -*- coding: utf-8 -*-
  
  from __future__ import absolute_import, unicode_literals
  
  import logging
  
  import six
  
  __all__ = ['generated_symbols']
  
  
  def generated_symbols(code):
      from soapfish import xsd  # import may not be generated.
  
      locals_ = dict(locals())
  
      try:
          # Let's trust our own code generation...
          six.exec_(code, {'xsd': xsd}, locals_)
      except Exception:
          logging.warning('Code could not be imported:\n%s', code)
          raise
  
      variables = set(locals_).difference(locals())
  
      schemas, symbols = [], {}
      for name in sorted(variables):
          symbol = locals_[name]
          symbols[name] = symbol
          if isinstance(symbol, xsd.Schema):
              schemas.append(symbol)
      return schemas, symbols
  
subject: fix non-deterministic test failures.