Skip to content

Commit 47b4cfe

Browse files
zaniebindygreg
authored andcommitted
Add usage of unused imports in tests
1 parent bcc16fd commit 47b4cfe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/verify_distribution.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66
import sys
77
import unittest
8+
import io
89

910

1011
TERMINFO_DIRS = [
@@ -45,6 +46,9 @@ def test_compression(self):
4546
self.assertTrue(lzma.is_check_supported(lzma.CHECK_CRC64))
4647
self.assertTrue(lzma.is_check_supported(lzma.CHECK_SHA256))
4748

49+
bz2.compress(b"test")
50+
zlib.compress(b"test")
51+
4852
def test_ctypes(self):
4953
import ctypes
5054

@@ -62,6 +66,7 @@ def error_handler(fif, message):
6266
@unittest.skipIf(os.name == "nt", "curses not available on Windows")
6367
def test_curses_import(self):
6468
import curses
69+
assert curses is not None
6570

6671
@unittest.skipIf(os.name == "nt", "curses not available on Windows")
6772
@unittest.skipIf("TERM" not in os.environ, "TERM not set")

0 commit comments

Comments
 (0)