old_contents: import pycurl
  
  def setup_package():
      print('Testing %s' % pycurl.version)
  
new_contents: def setup_package():
      # import here, not globally, so that running
      # python -m tests.appmanager
      # to launch the app manager is possible without having pycurl installed
      # (as the test app does not depend on pycurl)
      import pycurl
      
      print('Testing %s' % pycurl.version)
  
subject: Make it possible to run test app without pycurl being installed