]> git.pld-linux.org Git - packages/python-six.git/blob - python-six-tests.patch
- updated to 1.11.0
[packages/python-six.git] / python-six-tests.patch
1 HTMLParser is imported by some pytest extension.
2
3 --- six-1.11.0/test_six.py.orig 2017-09-17 20:46:32.000000000 +0200
4 +++ six-1.11.0/test_six.py      2018-07-15 09:35:02.566564199 +0200
5 @@ -87,13 +87,13 @@
6  
7  def test_lazy():
8      if six.PY3:
9 -        html_name = "html.parser"
10 +        html_name = "http.cookiejar"
11      else:
12 -        html_name = "HTMLParser"
13 +        html_name = "cookielib"
14      assert html_name not in sys.modules
15 -    mod = six.moves.html_parser
16 +    mod = six.moves.http_cookiejar
17      assert sys.modules[html_name] is mod
18 -    assert "htmlparser" not in six._MovedItems.__dict__
19 +    assert "httpcookiejar" not in six._MovedItems.__dict__
20  
21  
22  try:
This page took 0.091554 seconds and 3 git commands to generate.