old_contents: import argparse
  
  import parsl
  from parsl.app.app import python_app
  from parsl.tests.configs.local_threads import config
  
  
  @python_app
  def get_num(first, second):
      return first + second
  
  
  def test_fibonacci(num=3):
      x1 = 0
      x2 = 1
      counter = 0
      results = []
      results.append(0)
      results.append(1)
      while counter < num - 2:
          counter += 1
          results.append(get_num(x1, x2))
          temp = x2
          x2 = get_num(x1, x2)
          x1 = temp
      for i in range(len(results)):
          if isinstance(results[i], int):
              print(results[i])
          else:
              print(results[i].result())
  
  
  if __name__ == '__main__':
      parsl.clear()
      parsl.load(config)
      parser = argparse.ArgumentParser()
      parser.add_argument("-a", "--num", default="5",
                          action="store", dest="a", type=int)
      args = parser.parse_args()
      test_fibonacci(args.a)
  
new_contents: import argparse
  
  import parsl
  from parsl.app.app import python_app
  from parsl.tests.configs.local_threads import config
  
  
  @python_app
  def get_num(first, second):
      return first + second
  
  
  def test_fibonacci(num=3):
      counter = 0
      results = []
      results.append(0)
      results.append(1)
      while counter < num - 2:
          counter += 1
          results.append(get_num(results[counter - 1], results[counter]))
      for i in range(len(results)):
          if isinstance(results[i], int):
              print(results[i])
          else:
              print(results[i].result())
  
  
  if __name__ == '__main__':
      parsl.clear()
      parsl.load(config)
      parser = argparse.ArgumentParser()
      parser.add_argument("-a", "--num", default="5",
                          action="store", dest="a", type=int)
      args = parser.parse_args()
      test_fibonacci(args.a)
  
subject: Make the interactive fibonacci test wait for all of its tasks (#2306)