          del self.backend._storage_path
          # Make sure the file backend checks for a good storage dir
          self.assertRaises(ImproperlyConfigured, self.backend)
  
      def test_invalid_key_backslash(self):
          # This key should be refused and a new session should be created
          self.assertTrue(self.backend("a\\b\\c").load())
  
      def test_invalid_key_backslash(self):
          # Ensure we don't allow directory-traversal.
          # This is tested directly on _key_to_file, as load() will swallow
          # a SuspiciousOperation in the same way as an IOError - by creating
          # a new session, making it unclear whether the slashes were detected.
 
</s> remove         err = self.errors
 </s> add         # This triggers a full clean.
        self.errors </s> remove             from django.conf import settings
 </s> add  </s> remove                 except ImproperlyConfigured as e:
 </s> add                 except ImproperlyConfigured: </s> remove         from django.conf import settings

 </s> add  </s> remove from django.utils import six
 </s> add 
          del self.backend._storage_path
          # Make sure the file backend checks for a good storage dir
          self.assertRaises(ImproperlyConfigured, self.backend)
  




      def test_invalid_key_backslash(self):
          # Ensure we don't allow directory-traversal.
          # This is tested directly on _key_to_file, as load() will swallow
          # a SuspiciousOperation in the same way as an IOError - by creating
          # a new session, making it unclear whether the slashes were detected.
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Fixed a number of flake8 errors -- particularly around unused imports and local variables 
django/contrib/sessions/tests.py