1
0
Fork 0
libreoffice/pyuno/qa/pytests/testbz2.py
Daniel Baumann 8e63e14cf6
Adding upstream version 4:25.2.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 16:20:04 +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()