Skip to content

Commit 41b6d76

Browse files
pre-commit-ci[bot]mrbean-bremen
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2d40729 commit 41b6d76

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

pyfakefs/tests/fake_pathlib_test.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,13 +1353,9 @@ def test_windows_pure_path_str_backslash(self):
13531353

13541354
self.setUpPyfakefs()
13551355
self.assertEqual(
1356-
str(fake_pathlib.FakePathlibModule.PureWindowsPath(path)),
1357-
pure_result
1358-
)
1359-
self.assertEqual(
1360-
str(pathlib.PureWindowsPath(path)),
1361-
pure_result
1356+
str(fake_pathlib.FakePathlibModule.PureWindowsPath(path)), pure_result
13621357
)
1358+
self.assertEqual(str(pathlib.PureWindowsPath(path)), pure_result)
13631359

13641360
def test_windows_pure_path_str_forward_slash(self):
13651361
path = r"C:/Windows/cmd.exe"
@@ -1368,9 +1364,9 @@ def test_windows_pure_path_str_forward_slash(self):
13681364

13691365
self.setUpPyfakefs()
13701366
self.assertEqual(
1371-
str(fake_pathlib.FakePathlibModule.PureWindowsPath(path)),
1372-
pure_result
1367+
str(fake_pathlib.FakePathlibModule.PureWindowsPath(path)), pure_result
13731368
)
1369+
self.assertEqual(str(pathlib.PureWindowsPath(path)), pure_result)
13741370
self.assertEqual(pathlib.PurePosixPath(path).stem, pure_result)
13751371

13761372
def test_posix_pure_path_str_backslash(self):
@@ -1380,13 +1376,9 @@ def test_posix_pure_path_str_backslash(self):
13801376

13811377
self.setUpPyfakefs()
13821378
self.assertEqual(
1383-
str(fake_pathlib.FakePathlibModule.PurePosixPath(path)),
1384-
pure_result
1385-
)
1386-
self.assertEqual(
1387-
str(pathlib.PurePosixPath(path)),
1388-
pure_result
1379+
str(fake_pathlib.FakePathlibModule.PurePosixPath(path)), pure_result
13891380
)
1381+
self.assertEqual(str(pathlib.PurePosixPath(path)), pure_result)
13901382

13911383
def test_posix_pure_path_str_forward_slash(self):
13921384
path = "/bin/bash"

0 commit comments

Comments
 (0)