From e8cc000750de972384f2f34d02d42222b4018ae9 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Mon, 16 Mar 2020 23:20:15 -0400 Subject: New upstream version 1.13.2 --- test/test_cookies.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/test_cookies.py') diff --git a/test/test_cookies.py b/test/test_cookies.py index 4f294bf..c39a5e6 100644 --- a/test/test_cookies.py +++ b/test/test_cookies.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2017-2019 Mike Fährmann +# Copyright 2017-2020 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -12,7 +12,6 @@ from unittest import mock import logging import tempfile -import http.cookiejar from os.path import join import gallery_dl.config as config @@ -34,7 +33,7 @@ class TestCookiejar(unittest.TestCase): cls.invalid_cookiefile = join(cls.path.name, "invalid.txt") with open(cls.invalid_cookiefile, "w") as file: file.write("""# asd -.example.org\tTRUE\t/\tFALSE\t253402210800\tNAME\tVALUE +.example.org\tTRUE/FALSE\t253402210800\tNAME\tVALUE """) @classmethod @@ -55,7 +54,7 @@ class TestCookiejar(unittest.TestCase): self.assertEqual(cookie.value , "VALUE") def test_invalid_cookiefile(self): - self._test_warning(self.invalid_cookiefile, http.cookiejar.LoadError) + self._test_warning(self.invalid_cookiefile, ValueError) def test_invalid_filename(self): self._test_warning(join(self.path.name, "nothing"), FileNotFoundError) -- cgit v1.2.3