Skip to content

Commit

Permalink
Ran ruff --fix, removing redundant dict items.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Oct 12, 2023
1 parent fffb376 commit 5f3f91a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion cssutils/tests/test_cssstyledeclaration.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ def test_setProperty(self):
('left', '0', ''): 'left: 0',
('left', '0', 'important'): 'left: 0 !important',
('LEFT', '0', 'important'): 'left: 0 !important',
('left', '0', 'important'): 'left: 0 !important',
}
for test, exp in list(tests.items()):
s = cssutils.css.CSSStyleDeclaration()
Expand Down
5 changes: 0 additions & 5 deletions cssutils/tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ def test_parseUrl(self):
'utf-8',
'a {\n color: red\n }',
),
('http://cthedot.de/test.css', 'a {color: red}'): (
True,
'utf-8',
'a {\n color: red\n }',
),
('http://cthedot.de/test.css', '@charset "ascii";a {color: red}'): (
True,
'ascii',
Expand Down
16 changes: 0 additions & 16 deletions cssutils/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,22 +266,6 @@ def fetcher(url):
0,
'@charset "latin1";\xc3\xa4',
), # read as latin1!
# override ü @charset
('latin1', None, (None, b'@charset "ascii";')): (
'latin1',
0,
'@charset "latin1";',
),
('latin1', None, (None, '@charset "utf-8";ä'.encode('latin1'))): (
'latin1',
0,
'@charset "latin1";ä',
),
('latin1', None, (None, '@charset "utf-8";ä'.encode())): (
'latin1',
0,
'@charset "latin1";\xc3\xa4',
), # read as latin1!
# ===== 1. HTTP WINS =====
(None, 'ascii', ('latin1', b'')): ('latin1', 1, ''),
(None, 'ascii', ('latin1', b'123')): ('latin1', 1, '123'),
Expand Down

0 comments on commit 5f3f91a

Please sign in to comment.