From: Eli Bendersky Date: Wed, 8 Jan 2014 13:57:43 +0000 (-0800) Subject: Minor cleanups after last pull request X-Git-Tag: v0.22~9 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6d9064e2f00676c138fd2f5ca24331647288628;p=pyelftools.git Minor cleanups after last pull request --- 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 !!')