1e2c17a350
Change-Id: Iab051c91900768a3bf3f26b6de3b443dc18a6928 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169990 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
14 lines
357 B
Python
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()
|