From f6d9064e2f00676c138fd2f5ca24331647288628 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Wed, 8 Jan 2014 05:57:43 -0800 Subject: [PATCH] Minor cleanups after last pull request --- test/test_double_dynstr_section.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/test_double_dynstr_section.py b/test/test_double_dynstr_section.py index c907928..3078554 100644 --- a/test/test_double_dynstr_section.py +++ b/test/test_double_dynstr_section.py @@ -10,8 +10,7 @@ except ImportError: import unittest import os -from utils import setup_syspath -setup_syspath() +from utils import setup_syspath; setup_syspath() from elftools.elf.elffile import ELFFile from elftools.elf.dynamic import DynamicSection, DynamicTag @@ -32,7 +31,6 @@ class TestDoubleDynstrSections(unittest.TestCase): with open(os.path.join('test', 'testfiles_for_unittests', testfile), 'rb') as f: - elf = ELFFile(f) for section in elf.iter_sections(): if isinstance(section, DynamicSection): @@ -43,7 +41,6 @@ class TestDoubleDynstrSections(unittest.TestCase): TestDoubleDynstrSections.reference_data, d_tags) return - self.fail('No dynamic section found !!') -- 2.30.2