File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313from packagedcode import cache
1414from commoncode .fileutils import as_posixpath
15+ from commoncode .system import py314
1516
1617from packages_test_utils import PackageTester
1718
@@ -28,8 +29,12 @@ def test_build_mappings_and_multiregex_patterns_works(self):
2829 multiregexes = cache .build_mappings_and_multiregex_patterns (
2930 datafile_handlers = [AboutFileHandler ],
3031 )
31- assert multiregexes .patterns == [('(?s:.*\\ .ABOUT)\\ Z' , ['.about' ])]
32- assert multiregexes .handler_by_regex == {'(?s:.*\\ .ABOUT)\\ Z' : ['about_file' ]}
32+ if py314 :
33+ about_regex_pattern = '(?s:.*\\ .ABOUT)\\ z'
34+ else :
35+ about_regex_pattern = '(?s:.*\\ .ABOUT)\\ Z'
36+ assert multiregexes .patterns == [(about_regex_pattern , ['.about' ])]
37+ assert multiregexes .handler_by_regex == {about_regex_pattern : ['about_file' ]}
3338
3439 def test_build_package_cache_works (self ):
3540 from packagedcode .about import AboutFileHandler
You can’t perform that action at this time.
0 commit comments