blob: 12a44e14bb0906e961a557dda490baf42ecbd47b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import os
import unittest
# tdf#116412: make sure importing bz2 works on all platforms
class BZ2Test(unittest.TestCase):
def test_bz2_import(self):
import bz2
# use imported bz2 module for pyflakes
with open(os.devnull, "w") as devnull:
print(str(bz2), file=devnull)
if __name__ == '__main__':
unittest.main()
|