diff options
| author | bashonly <88596187+bashonly@users.noreply.github.com> | 2023-09-23 15:00:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-23 20:00:31 +0000 |
| commit | 5ca095cbcde3e32642a4fe5b2d69e8e3c785a021 (patch) | |
| tree | d238e3e1c8ad4100a16b781678aaec712b954ac5 /test | |
| parent | c2da0b5ea215298135f76e3dc14b972a3c4afacb (diff) | |
[cleanup] Misc (#8182)
Closes #7796, Closes #8028
Authored by: barsnick, sqrtNOT, gamer191, coletdjnz, Grub4K, bashonly
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_YoutubeDL.py | 1 | ||||
| -rw-r--r-- | test/test_networking_utils.py | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index 3cfb61fb2..916ee48b9 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -632,7 +632,6 @@ class TestYoutubeDL(unittest.TestCase): outtmpl_info = { 'id': '1234', - 'id': '1234', 'ext': 'mp4', 'width': None, 'height': 1080, diff --git a/test/test_networking_utils.py b/test/test_networking_utils.py index dbf656090..419aae1e4 100644 --- a/test/test_networking_utils.py +++ b/test/test_networking_utils.py @@ -269,14 +269,14 @@ class TestNetworkingExceptions: assert not response.closed def test_incomplete_read_error(self): - error = IncompleteRead(b'test', 3, cause='test') + error = IncompleteRead(4, 3, cause='test') assert isinstance(error, IncompleteRead) assert repr(error) == '<IncompleteRead: 4 bytes read, 3 more expected>' assert str(error) == error.msg == '4 bytes read, 3 more expected' - assert error.partial == b'test' + assert error.partial == 4 assert error.expected == 3 assert error.cause == 'test' - error = IncompleteRead(b'aaa') + error = IncompleteRead(3) assert repr(error) == '<IncompleteRead: 3 bytes read>' assert str(error) == '3 bytes read' |
