summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/tests/test_modtool.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-utils/python/modtool/tests/test_modtool.py')
-rw-r--r--gr-utils/python/modtool/tests/test_modtool.py6
1 files changed, 1 insertions, 5 deletions
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}