office-gobmx/pyuno/qa/pytests/testbz2.py
Xisco Fauli 1e2c17a350 tdf#116412: Add unittest
Change-Id: Iab051c91900768a3bf3f26b6de3b443dc18a6928
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169990
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-07-04 15:45:15 +02:00

14 lines
357 B
Python

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()