Bug 2274097 - python-dirhash fails to build with pytest 8: AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'
Summary: python-dirhash fails to build with pytest 8: AttributeError: 'TestGetIncluded...
Keywords:
Status: POST
Alias: None
Product: Fedora
Classification: Fedora
Component: python-dirhash
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Scott K Logan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-04-09 06:46 UTC by Tomáš Hrnčiar
Modified: 2024-04-22 10:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2024-04-09 06:46:30 UTC
python-dirhash fails to build with pytest 8.

=================================== FAILURES ===================================
_______________________ TestGetIncludedPaths.test_basic ________________________

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e1100>

    def test_basic(self):
>       self.mkdirs('root/d1/d11')

tests/test_dirhash.py:166: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e1100>
relpath = 'root/d1/d11'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
__________________ TestGetIncludedPaths.test_not_a_directory ___________________

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e13d0>

    def test_not_a_directory(self):
>       self.mkdirs('root')

tests/test_dirhash.py:183: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e13d0>
relpath = 'root'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
___________________ TestGetIncludedPaths.test_symlinked_file ___________________

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e1550>

    def test_symlinked_file(self):
>       self.mkdirs('root')

tests/test_dirhash.py:192: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e1550>
relpath = 'root'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
___________________ TestGetIncludedPaths.test_symlinked_dir ____________________

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e0c20>

    def test_symlinked_dir(self):
>       self.mkdirs('root')

tests/test_dirhash.py:214: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e0c20>
relpath = 'root'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
____________________ TestGetIncludedPaths.test_cyclic_link _____________________

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e0b60>

    def test_cyclic_link(self):
>       self.mkdirs('root/d1')

tests/test_dirhash.py:238: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e0b60>
relpath = 'root/d1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
________________ TestGetIncludedPaths.test_exclude_hidden_dirs _________________

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e0710>

    def test_exclude_hidden_dirs(self):
>       self.mkdirs('root/d1')

tests/test_dirhash.py:282: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e0710>
relpath = 'root/d1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
___________ TestGetIncludedPaths.test_exclude_hidden_dirs_and_files ____________

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e09e0>

    def test_exclude_hidden_dirs_and_files(self):
>       self.mkdirs('root/d1')

tests/test_dirhash.py:304: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e09e0>
relpath = 'root/d1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
_________________ TestGetIncludedPaths.test_exclude_extensions _________________

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e0d70>

    def test_exclude_extensions(self):
>       self.mkdirs('root/d1')

tests/test_dirhash.py:325: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e0d70>
relpath = 'root/d1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
___________ TestGetIncludedPaths.test_empty_dirs_include_vs_exclude ____________

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e1160>

    def test_empty_dirs_include_vs_exclude(self):
>       self.mkdirs('root/d1')

tests/test_dirhash.py:346: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e1160>
relpath = 'root/d1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
__ TestGetIncludedPaths.test_empty_dirs_because_of_filter_include_vs_exclude ___

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e19a0>

    def test_empty_dirs_because_of_filter_include_vs_exclude(self):
>       self.mkdirs('root/d1')

tests/test_dirhash.py:371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e19a0>
relpath = 'root/d1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
_____ TestGetIncludedPaths.test_empty_dir_inclusion_not_affected_by_match ______

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e2a80>

    def test_empty_dir_inclusion_not_affected_by_match(self):
>       self.mkdirs('root/d1')

tests/test_dirhash.py:399: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestGetIncludedPaths object at 0x7f233f8e2a80>
relpath = 'root/d1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestGetIncludedPaths' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
____________________ TestDirhash.test_guaranteed_algorithms ____________________

self = <test_dirhash.TestDirhash object at 0x7f233f8e2060>

    def test_guaranteed_algorithms(self):
>       self.mkdirs('root/d1/d11')

tests/test_dirhash.py:436: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8e2060>
relpath = 'root/d1/d11'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
____________________ TestDirhash.test_recursive_descriptor _____________________

self = <test_dirhash.TestDirhash object at 0x7f233f8e2420>

    def test_recursive_descriptor(self):
>       self.mkdirs('root/d1')

tests/test_dirhash.py:461: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8e2420>, relpath = 'root/d1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
_______________________ TestDirhash.test_symlinked_file ________________________

self = <test_dirhash.TestDirhash object at 0x7f233f8e05c0>

    def test_symlinked_file(self):
>       self.mkdirs('root1')

tests/test_dirhash.py:488: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8e05c0>, relpath = 'root1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
________________________ TestDirhash.test_symlinked_dir ________________________

self = <test_dirhash.TestDirhash object at 0x7f233f8e04a0>

    def test_symlinked_dir(self):
>       self.mkdirs('root1')

tests/test_dirhash.py:513: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8e04a0>, relpath = 'root1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
___________________ TestDirhash.test_cache_used_for_symlinks ___________________

self = <test_dirhash.TestDirhash object at 0x7f233f8e03b0>

    def test_cache_used_for_symlinks(self):
    
>       self.mkdirs('root/dir')

tests/test_dirhash.py:545: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8e03b0>, relpath = 'root/dir'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
__________ TestDirhash.test_raise_on_empty_root_without_include_empty __________

self = <test_dirhash.TestDirhash object at 0x7f233f8e0050>

    def test_raise_on_empty_root_without_include_empty(self):
>       self.mkdirs('root')

tests/test_dirhash.py:558: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8e0050>, relpath = 'root'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
__________________ TestDirhash.test_empty_root_include_empty ___________________

self = <test_dirhash.TestDirhash object at 0x7f233f823860>

    def test_empty_root_include_empty(self):
>       self.mkdirs('root')

tests/test_dirhash.py:563: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f823860>, relpath = 'root'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
________________________ TestDirhash.test_include_empty ________________________

self = <test_dirhash.TestDirhash object at 0x7f233f8a33b0>

    def test_include_empty(self):
>       self.mkdirs('root/d1')

tests/test_dirhash.py:573: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8a33b0>, relpath = 'root/d1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
__________________________ TestDirhash.test_chunksize __________________________

self = <test_dirhash.TestDirhash object at 0x7f233f8a3f20>

    def test_chunksize(self):
>       self.mkdirs('root')

tests/test_dirhash.py:589: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8a3f20>, relpath = 'root'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
__________________________ TestDirhash.test_data_only __________________________

self = <test_dirhash.TestDirhash object at 0x7f233f8a3ce0>

    def test_data_only(self):
>       self.mkdirs('root1')

tests/test_dirhash.py:601: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8a3ce0>, relpath = 'root1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
__________________________ TestDirhash.test_name_only __________________________

self = <test_dirhash.TestDirhash object at 0x7f233f8a3e60>

    def test_name_only(self):
>       self.mkdirs('root1')

tests/test_dirhash.py:624: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8a3e60>, relpath = 'root1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
______________________ TestDirhash.test_is_link_property _______________________

self = <test_dirhash.TestDirhash object at 0x7f233f8a3a40>

    def test_is_link_property(self):
>       self.mkdirs('root1')

tests/test_dirhash.py:645: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8a3a40>, relpath = 'root1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
_________ TestDirhash.test_raise_on_not_at_least_one_of_name_and_data __________

self = <test_dirhash.TestDirhash object at 0x7f233f8a39b0>

    def test_raise_on_not_at_least_one_of_name_and_data(self):
>       self.mkdirs('root1')

tests/test_dirhash.py:672: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8a39b0>, relpath = 'root1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
______________________ TestDirhash.test_multiproc_speedup ______________________

self = <test_dirhash.TestDirhash object at 0x7f233f8a3650>

    def test_multiproc_speedup(self):
    
>       self.mkdirs('root/dir')

tests/test_dirhash.py:691: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8a3650>, relpath = 'root/dir'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
__________________ TestDirhash.test_hash_cyclic_link_to_root ___________________

self = <test_dirhash.TestDirhash object at 0x7f233f8e50d0>

    def test_hash_cyclic_link_to_root(self):
>       self.mkdirs('root/d1')

tests/test_dirhash.py:787: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8e50d0>, relpath = 'root/d1'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
______________________ TestDirhash.test_hash_cyclic_link _______________________

self = <test_dirhash.TestDirhash object at 0x7f233f8e5a00>

    def test_hash_cyclic_link(self):
>       self.mkdirs('root/d1/d2')

tests/test_dirhash.py:796: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8e5a00>
relpath = 'root/d1/d2'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
___________________ TestDirhash.test_pass_filtering_instance ___________________

self = <test_dirhash.TestDirhash object at 0x7f233f8e6540>

    def test_pass_filtering_instance(self):
>       self.mkdirs('root')

tests/test_dirhash.py:805: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8e6540>, relpath = 'root'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
___________________ TestDirhash.test_pass_protocol_instance ____________________

self = <test_dirhash.TestDirhash object at 0x7f233f8a3680>

    def test_pass_protocol_instance(self):
>       self.mkdirs('root')

tests/test_dirhash.py:810: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8a3680>, relpath = 'root'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
_____________________ TestDirhash.test_raise_on_wrong_type _____________________

self = <test_dirhash.TestDirhash object at 0x7f233f8a3c80>

    def test_raise_on_wrong_type(self):
>       self.mkdirs('root')

tests/test_dirhash.py:815: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dirhash.py:146: in mkdirs
    os.makedirs(self.path_to(dirpath))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_dirhash.TestDirhash object at 0x7f233f8a3c80>, relpath = 'root'

    def path_to(self, relpath):
>       return os.path.join(self.dir, relpath)
E       AttributeError: 'TestDirhash' object has no attribute 'dir'

tests/test_dirhash.py:143: AttributeError
=============================== warnings summary ===============================
../../BUILDROOT/python-dirhash-0.2.1-3.fc41.x86_64/usr/lib/python3.12/site-packages/dirhash/__init__.py:8
  /builddir/build/BUILDROOT/python-dirhash-0.2.1-3.fc41.x86_64/usr/lib/python3.12/site-packages/dirhash/__init__.py:8: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

---------- coverage: platform linux, python 3.12.2-final-0 -----------
Coverage XML written to file coverage.xml

=========================== short test summary info ============================
FAILED tests/test_dirhash.py::TestGetIncludedPaths::test_basic - AttributeErr...
FAILED tests/test_dirhash.py::TestGetIncludedPaths::test_not_a_directory - At...
FAILED tests/test_dirhash.py::TestGetIncludedPaths::test_symlinked_file - Att...
FAILED tests/test_dirhash.py::TestGetIncludedPaths::test_symlinked_dir - Attr...
FAILED tests/test_dirhash.py::TestGetIncludedPaths::test_cyclic_link - Attrib...
FAILED tests/test_dirhash.py::TestGetIncludedPaths::test_exclude_hidden_dirs
FAILED tests/test_dirhash.py::TestGetIncludedPaths::test_exclude_hidden_dirs_and_files
FAILED tests/test_dirhash.py::TestGetIncludedPaths::test_exclude_extensions
FAILED tests/test_dirhash.py::TestGetIncludedPaths::test_empty_dirs_include_vs_exclude
FAILED tests/test_dirhash.py::TestGetIncludedPaths::test_empty_dirs_because_of_filter_include_vs_exclude
FAILED tests/test_dirhash.py::TestGetIncludedPaths::test_empty_dir_inclusion_not_affected_by_match
FAILED tests/test_dirhash.py::TestDirhash::test_guaranteed_algorithms - Attri...
FAILED tests/test_dirhash.py::TestDirhash::test_recursive_descriptor - Attrib...
FAILED tests/test_dirhash.py::TestDirhash::test_symlinked_file - AttributeErr...
FAILED tests/test_dirhash.py::TestDirhash::test_symlinked_dir - AttributeErro...
FAILED tests/test_dirhash.py::TestDirhash::test_cache_used_for_symlinks - Att...
FAILED tests/test_dirhash.py::TestDirhash::test_raise_on_empty_root_without_include_empty
FAILED tests/test_dirhash.py::TestDirhash::test_empty_root_include_empty - At...
FAILED tests/test_dirhash.py::TestDirhash::test_include_empty - AttributeErro...
FAILED tests/test_dirhash.py::TestDirhash::test_chunksize - AttributeError: '...
FAILED tests/test_dirhash.py::TestDirhash::test_data_only - AttributeError: '...
FAILED tests/test_dirhash.py::TestDirhash::test_name_only - AttributeError: '...
FAILED tests/test_dirhash.py::TestDirhash::test_is_link_property - AttributeE...
FAILED tests/test_dirhash.py::TestDirhash::test_raise_on_not_at_least_one_of_name_and_data
FAILED tests/test_dirhash.py::TestDirhash::test_multiproc_speedup - Attribute...
FAILED tests/test_dirhash.py::TestDirhash::test_hash_cyclic_link_to_root - At...
FAILED tests/test_dirhash.py::TestDirhash::test_hash_cyclic_link - AttributeE...
FAILED tests/test_dirhash.py::TestDirhash::test_pass_filtering_instance - Att...
FAILED tests/test_dirhash.py::TestDirhash::test_pass_protocol_instance - Attr...
FAILED tests/test_dirhash.py::TestDirhash::test_raise_on_wrong_type - Attribu...
=========== 30 failed, 39 passed, 1 deselected, 1 warning in 14.78s ============

https://docs.pytest.org/en/stable/changelog.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest/fedora-rawhide-x86_64/07247985-python-dirhash/

For all our attempts to build python-dirhash with pytest 8, see:
https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/python-dirhash/

Let us know here if you have any questions.

Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a
heads up before we merge new pytest into rawhide. For more info see a Fedora Change
proposal https://fedoraproject.org/wiki/Changes/Pytest_8

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.


Note You need to log in before you can comment on or make changes to this bug.