aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_cookies.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2020-03-16 23:20:22 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2020-03-16 23:20:22 -0400
commitf1baa4aa12d705e290f74c9fb4c6cd5eb2976fa2 (patch)
tree70267e5f04db1da396e75fd4148d9c542683bbab /test/test_cookies.py
parent2bd320e568d015940227b7355396701331e2cd1e (diff)
parente8cc000750de972384f2f34d02d42222b4018ae9 (diff)
Update upstream source from tag 'upstream/1.13.2'
Update to upstream version '1.13.2' with Debian dir a36309ac1ae7b23d042eaafd21c4267c2f840ab4
Diffstat (limited to 'test/test_cookies.py')
-rw-r--r--test/test_cookies.py7
1 files changed, 3 insertions, 4 deletions
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)