From 678a7c2ad5db89e0634bfae2b0c9186f1ce63e89 Mon Sep 17 00:00:00 2001 From: Marcus Müller <mmueller@gnuradio.org> Date: Sat, 10 Aug 2019 01:01:56 +0200 Subject: Disable Python 2k - Update SWIG settings - Update CMake - Remove Python2 references Note: This does not touch a lot of Python files, and many Python files will still work with Python 2 after this commit. However, we won't allow that in our CMake, and the support will be gone too. --- gr-utils/python/modtool/tests/test_modtool.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gr-utils/python/modtool/tests/test_modtool.py') diff --git a/gr-utils/python/modtool/tests/test_modtool.py b/gr-utils/python/modtool/tests/test_modtool.py index 957a5e7d54..3cfd735f90 100644 --- a/gr-utils/python/modtool/tests/test_modtool.py +++ b/gr-utils/python/modtool/tests/test_modtool.py @@ -64,11 +64,7 @@ class TestModToolCore(unittest.TestCase): def setUp(self): """ create a new module and block before every test """ try: - try: - warnings.simplefilter("ignore", ResourceWarning) - except (NameError): - # Python2 , Python3 < 3.2 don't know ResourceWarning - pass + warnings.simplefilter("ignore", ResourceWarning) args = {'module_name':'howto', 'directory': self.test_dir, 'srcdir': self.srcdir} -- cgit v1.2.3