old_contents: import numpy as np
  
  from foolbox.attacks import NewtonFoolAttack as Attack
  
  
  def test_attack(bn_adversarial):
      adv = bn_adversarial
      attack = Attack()
      attack(adv)
      assert adv.image is not None
      assert adv.distance.value < np.inf
  
  
  def test_targeted_attack(bn_targeted_adversarial):
      adv = bn_targeted_adversarial
      attack = Attack()
      attack(adv)
      assert adv.image is None
      assert adv.distance.value == np.inf
new_contents: import numpy as np
  
  from foolbox.attacks import NewtonFoolAttack as Attack
  
  
  def test_attack(bn_adversarial):
      adv = bn_adversarial
      attack = Attack()
      attack(adv)
      assert adv.image is not None
      assert adv.distance.value < np.inf
  
  
  def test_targeted_attack(bn_targeted_adversarial):
      adv = bn_targeted_adversarial
      attack = Attack()
      attack(adv)
      assert adv.image is None
      assert adv.distance.value == np.inf
  
subject: fix flake8 warning