Fix matching condition on Windows path.
This commit is contained in:
parent
df57d091f1
commit
71dd10cdf6
1 changed files with 4 additions and 4 deletions
|
@ -345,8 +345,8 @@ class ConfigurationTests(unittest.TestCase):
|
|||
types.SimpleNamespace(config=config)
|
||||
)
|
||||
self.assertEqual(len(c.blob_dirs), 2)
|
||||
self.assertRegex(c.blob_dirs[0], f"^.+{os.path.join('dir0', 'dir1')}$")
|
||||
self.assertRegex(c.blob_dirs[1], f"^.+{os.path.join('dir0', 'dir2')}$")
|
||||
self.assertTrue(c.blob_dirs[0].endswith(os.path.join('dir0', 'dir1')))
|
||||
self.assertTrue(c.blob_dirs[1].endswith(os.path.join('dir0', 'dir2')))
|
||||
with c.update_config():
|
||||
c.blob_dirs = []
|
||||
with open(config, 'r') as fd:
|
||||
|
@ -368,5 +368,5 @@ class ConfigurationTests(unittest.TestCase):
|
|||
])
|
||||
c = Config.create_from_arguments(args)
|
||||
self.assertEqual(len(c.blob_dirs), 2)
|
||||
self.assertRegex(c.blob_dirs[0], f"^.+{os.path.join('dir0', 'dir1')}$")
|
||||
self.assertRegex(c.blob_dirs[1], f"^.+{os.path.join('dir0', 'dir2')}$")
|
||||
self.assertTrue(c.blob_dirs[0].endswith(os.path.join('dir0', 'dir1')))
|
||||
self.assertTrue(c.blob_dirs[1].endswith(os.path.join('dir0', 'dir2')))
|
||||
|
|
Loading…
Add table
Reference in a new issue