X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_mip.py;h=a73054fad236c3e5fc65d99dc6af10facb5f9a0d;hb=f5567ea88d172767b34373bc6e402da8bfd85ef8;hp=c5a418e1ea83ed45727ca95b95b5cfc008be4ea1;hpb=6a4dbecc89debb548aeb24d49e2a8a500c03f3e7;p=babeltrace.git diff --git a/tests/bindings/python/bt2/test_mip.py b/tests/bindings/python/bt2/test_mip.py index c5a418e1..a73054fa 100644 --- a/tests/bindings/python/bt2/test_mip.py +++ b/tests/bindings/python/bt2/test_mip.py @@ -1,20 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-only # # Copyright (C) 2019 EfficiOS Inc. # -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; only version 2 -# of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# import unittest import bt2 @@ -98,7 +85,7 @@ class MipTestCase(unittest.TestCase): descriptors = [bt2.ComponentDescriptor(Source1)] with self.assertRaises(TypeError): - bt2.get_greatest_operative_mip_version(descriptors, 'lel') + bt2.get_greatest_operative_mip_version(descriptors, "lel") def test_get_greatest_operative_mip_version_wrong_log_level_value(self): class Source1( @@ -113,3 +100,7 @@ class MipTestCase(unittest.TestCase): def test_get_maximal_mip_version(self): self.assertEqual(bt2.get_maximal_mip_version(), 0) + + +if __name__ == "__main__": + unittest.main()