START: ptest-runner
2025-01-09T14:07
PASS: tests/export_test.py:Test_exports.test_exports32
PASS: tests/export_test.py:Test_exports.test_exports64

self = <pefile_test.Test_pefile testMethod=test_VS_VERSIONINFO_dword_aligment>

    def test_VS_VERSIONINFO_dword_aligment(self):
        # Fixed a bug in pefile < 1.2.10-96. Fixed in revision 96:
        # http://code.google.com/p/pefile/source/detail?r=96
        # Was issue: 12
    
        control_file = os.path.join(
            REGRESSION_TESTS_DIR,
            "031.vxe_pefile_1.2.10-95_dword_alignment_was_not_ok_for_" "VS_VERSIONINFO",
        )
>       pe = pefile.PE(control_file)

tests/pefile_test.py:509: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac528410>
fname = 'tests/test_files/031.vxe_pefile_1.2.10-95_dword_alignment_was_not_ok_for_VS_VERSIONINFO'
data = None, fast_load = False

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/031.vxe_pefile_1.2.10-95_dword_alignment_was_not_ok_for_VS_VERSIONINFO'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_VS_VERSIONINFO_dword_aligment

self = <pefile_test.Test_pefile testMethod=test_checksum>

    def test_checksum(self):
        """Verify correct calculation of checksum"""
    
        # Take a known good file.
        control_file = os.path.join(REGRESSION_TESTS_DIR, "MSVBVM60.DLL")
>       pe = pefile.PE(control_file)

tests/pefile_test.py:628: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d7bb0>
fname = 'tests/test_files/MSVBVM60.DLL', data = None, fast_load = False

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/MSVBVM60.DLL'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_checksum
PASS: tests/pefile_test.py:Test_pefile.test_dos_header_exception_large_data
PASS: tests/pefile_test.py:Test_pefile.test_dos_header_exception_small_data

self = <pefile_test.Test_pefile testMethod=test_driver_check>

    def test_driver_check(self):
        """Test the is_driver check"""
    
        control_file_pe = os.path.join(
            REGRESSION_TESTS_DIR,
            "075356de51afac92d1c20ba53c966fa145172897a96cfdb1b3bb369edb376a77_driver",
        )
    
>       pe_fast = pefile.PE(control_file_pe, fast_load=True)

tests/pefile_test.py:591: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d5ba0>
fname = 'tests/test_files/075356de51afac92d1c20ba53c966fa145172897a96cfdb1b3bb369edb376a77_driver'
data = None, fast_load = True

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/075356de51afac92d1c20ba53c966fa145172897a96cfdb1b3bb369edb376a77_driver'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_driver_check

self = <pefile_test.Test_pefile testMethod=test_empty_file_exception>

    def test_empty_file_exception(self):
        """pefile should fail parsing empty files."""
    
        # Take a known good file
        control_file = os.path.join(REGRESSION_TESTS_DIR, "empty_file")
>       self.assertRaises(pefile.PEFormatError, pefile.PE, control_file)

tests/pefile_test.py:343: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/empty_file'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_empty_file_exception

self = <pefile_test.Test_pefile testMethod=test_entry_point_retrieval_with_overlapping_sections>

    def test_entry_point_retrieval_with_overlapping_sections(self):
        # Versions up to and including 114 would not handle overlapping
        # sections correctly. A section size could push the end address
        # beyond the start of the next section, in such cases the sections'
        # contains_rva() would return true for an address lying in a later
        # section. contains_rva() is used in multiple places to find out
        # from what section's disk-offset to read from, finding an invalid
        # section leads to reading the wrong data.
        # A check is made now that the section's start address + size does not
        # go beyond a subsequent section's start address and if so, it's
        # truncated.
        control_file = os.path.join(
            REGRESSION_TESTS_DIR,
            "924C62EF97E0B4939E9047B866037BB5BDDA92F9DA6D22F5DEEFC540856CDC0D."
            "bin__aleph_overlapping_sections",
        )
>       pe = pefile.PE(control_file)

tests/pefile_test.py:400: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d76f0>
fname = 'tests/test_files/924C62EF97E0B4939E9047B866037BB5BDDA92F9DA6D22F5DEEFC540856CDC0D.bin__aleph_overlapping_sections'
data = None, fast_load = False

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/924C62EF97E0B4939E9047B866037BB5BDDA92F9DA6D22F5DEEFC540856CDC0D.bin__aleph_overlapping_sections'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_entry_point_retrieval_with_overlapping_sections

self = <pefile_test.Test_pefile testMethod=test_entry_point_retrieval_with_unusual_PointerToRawData_values>

    def test_entry_point_retrieval_with_unusual_PointerToRawData_values(self):
        # Fixed a bug in pefile <= 1.2.10-106. Fixed in revision 107
        # http://code.google.com/p/pefile/source/detail?r=107
    
        # This file has abnormal PointerToRawData values that lead to the EP
        # not being correctly retrieved. The first section's PointerToRawData
        # is 0x10, which is rounded down to zero, it's VirtualAddress is 0x1000.
        # The entry point is at 0x1018, hence it will correspond to reading at
        # offset 0x18 in the file.
        control_file = os.path.join(
            REGRESSION_TESTS_DIR, "unconventional_PointerToRawData_values"
        )
>       pe = pefile.PE(control_file)

tests/pefile_test.py:442: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d7950>
fname = 'tests/test_files/unconventional_PointerToRawData_values', data = None
fast_load = False

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/unconventional_PointerToRawData_values'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_entry_point_retrieval_with_unusual_PointerToRawData_values

self = <pefile_test.Test_pefile testMethod=test_entry_point_retrieval_with_unusual_aligments>

    def test_entry_point_retrieval_with_unusual_aligments(self):
        # Fixed a bug in pefile <= 1.2.10-93. Fixed in revision 94
        # http://code.google.com/p/pefile/source/detail?r=94
    
        # this file has FileAlignment == SectionAlignment == 0x200 and
        # its section layout led to older versions of pefile not reading
        # the correct entry point data
        control_file = os.path.join(
            REGRESSION_TESTS_DIR,
            "BackDoor.Poison.ex_bad_section_and_file_aligments_broke_"
            "pefile_1.2.10-93",
        )
>       pe = pefile.PE(control_file)

tests/pefile_test.py:421: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d6650>
fname = 'tests/test_files/BackDoor.Poison.ex_bad_section_and_file_aligments_broke_pefile_1.2.10-93'
data = None, fast_load = False

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/BackDoor.Poison.ex_bad_section_and_file_aligments_broke_pefile_1.2.10-93'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_entry_point_retrieval_with_unusual_aligments

self = <pefile_test.Test_pefile testMethod=test_exphash>

    def test_exphash(self):
        """Test exphash values."""
    
        self.assertEqual(
>           pefile.PE(os.path.join(REGRESSION_TESTS_DIR, "mfc40.dll")).get_exphash(),
            "62d630f6941ad56df3b0a079873a82bc",
        )

tests/pefile_test.py:234: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d76f0>
fname = 'tests/test_files/mfc40.dll', data = None, fast_load = False

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/mfc40.dll'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_exphash

self = <pefile_test.Test_pefile testMethod=test_get_overlay_and_trimming>

    def test_get_overlay_and_trimming(self):
        """Test method to retrieve overlay data and trim the PE"""
    
        control_file_pe = os.path.join(
            REGRESSION_TESTS_DIR, "0x90_with_overlay_data.exe"
        )
>       pe = pefile.PE(control_file_pe)

tests/pefile_test.py:541: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d6780>
fname = 'tests/test_files/0x90_with_overlay_data.exe', data = None
fast_load = False

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/0x90_with_overlay_data.exe'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_get_overlay_and_trimming

self = <pefile_test.Test_pefile testMethod=test_get_rich_header_hash>

    def test_get_rich_header_hash(self):
        """Verify the RICH_HEADER hashes."""
    
        control_file = os.path.join(REGRESSION_TESTS_DIR, "kernel32.dll")
>       pe = pefile.PE(control_file)

tests/pefile_test.py:160: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d7950>
fname = 'tests/test_files/kernel32.dll', data = None, fast_load = False

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/kernel32.dll'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_get_rich_header_hash

self = <pefile_test.Test_pefile testMethod=test_imphash>

    def test_imphash(self):
        """Test imphash values."""
    
        self.assertEqual(
>           pefile.PE(os.path.join(REGRESSION_TESTS_DIR, "mfc40.dll")).get_imphash(),
            "ef3d32741141a9ffde06721c65ea07b6",
        )

tests/pefile_test.py:204: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d6650>
fname = 'tests/test_files/mfc40.dll', data = None, fast_load = False

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/mfc40.dll'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_imphash

self = <pefile_test.Test_pefile testMethod=test_nt_headers_exception>

    def test_nt_headers_exception(self):
        """pefile should fail parsing invalid data (missing NT headers)"""
    
        # Take a known good file.
        control_file = os.path.join(REGRESSION_TESTS_DIR, "MSVBVM60.DLL")
>       pe = pefile.PE(control_file, fast_load=True)

tests/pefile_test.py:304: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d76f0>
fname = 'tests/test_files/MSVBVM60.DLL', data = None, fast_load = True

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/MSVBVM60.DLL'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_nt_headers_exception

self = <pefile_test.Test_pefile testMethod=test_overlay_github_issue_104>

    def test_overlay_github_issue_104(self):
        control_file_pe = os.path.join(
            REGRESSION_TESTS_DIR,
            "307a69414b203f1116db677b8bc07130ae2b72cf33cf2ae5a39bf1bd484b587c_overlay_issue_104",
        )
>       pe = pefile.PE(control_file_pe)

tests/pefile_test.py:523: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d6780>
fname = 'tests/test_files/307a69414b203f1116db677b8bc07130ae2b72cf33cf2ae5a39bf1bd484b587c_overlay_issue_104'
data = None, fast_load = False

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/307a69414b203f1116db677b8bc07130ae2b72cf33cf2ae5a39bf1bd484b587c_overlay_issue_104'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_overlay_github_issue_104
PASS: tests/pefile_test.py:Test_pefile.test_pe_image_regression_test

self = <pefile_test.Test_pefile testMethod=test_rebased_image>

    def test_rebased_image(self):
        """Test correctness of rebased images"""
    
        # Take a known good file.
        control_file = os.path.join(
            REGRESSION_TESTS_DIR,
            "pefile_unittest_data__resurrel_malware_rebased_0x400000",
        )
>       control_file_f = open(control_file, "rb")
E       FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/pefile_unittest_data__resurrel_malware_rebased_0x400000'

tests/pefile_test.py:612: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_rebased_image

self = <pefile_test.Test_pefile testMethod=test_relocated_memory_mapped_image>

    def test_relocated_memory_mapped_image(self):
        """Test different rebasing methods produce the same image"""
    
        # Take a known good file
        control_file = os.path.join(REGRESSION_TESTS_DIR, "MSVBVM60.DLL")
>       pe = pefile.PE(control_file)

tests/pefile_test.py:350: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d7950>
fname = 'tests/test_files/MSVBVM60.DLL', data = None, fast_load = False

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/MSVBVM60.DLL'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_relocated_memory_mapped_image

self = <pefile_test.Test_pefile testMethod=test_selective_loading_integrity>

    def test_selective_loading_integrity(self):
        """Verify integrity of loading the separate elements of the file as
        opposed to do a single pass.
        """
    
        control_file = os.path.join(REGRESSION_TESTS_DIR, "MSVBVM60.DLL")
>       pe = pefile.PE(control_file, fast_load=True)

tests/pefile_test.py:187: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d6650>
fname = 'tests/test_files/MSVBVM60.DLL', data = None, fast_load = True

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/MSVBVM60.DLL'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_selective_loading_integrity
PASS: tests/pefile_test.py:Test_pefile.test_unable_to_read_file

self = <pefile_test.Test_pefile testMethod=test_write_header_fields>

    def test_write_header_fields(self):
        """Verify correct field data modification."""
    
        # Test version information writing
        control_file = os.path.join(REGRESSION_TESTS_DIR, "MSVBVM60.DLL")
>       pe = pefile.PE(control_file, fast_load=True)

tests/pefile_test.py:265: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../python3.13/site-packages/pefile.py:2941: in __init__
    self.__parse__(name, data, fast_load)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pefile.PE object at 0x7f30ac4d76f0>
fname = 'tests/test_files/MSVBVM60.DLL', data = None, fast_load = True

    def __parse__(self, fname, data, fast_load):
        """Parse a Portable Executable file.
    
        Loads a PE file, parsing all its structures and making them available
        through the instance's attributes.
        """
    
        if fname is not None:
>           stat = os.stat(fname)
E           FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_files/MSVBVM60.DLL'

../../python3.13/site-packages/pefile.py:3021: FileNotFoundError
FAIL: tests/pefile_test.py:Test_pefile.test_write_header_fields
============================================================================
Testsuite summary
# TOTAL: 23
# PASS: 6
# SKIP: 0
# XFAIL: 0
# FAIL: 17
# XPASS: 0
# ERROR: 0

ERROR: Exit status is 1
DURATION: 4
