Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a21a4f4

Browse files
committed
Fix missing create=True attribute in docker tests
1 parent b43b6a6 commit a21a4f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/languages/docker_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ def test_docker_is_running_process_error():
1818
def test_docker_fallback_uid():
1919
def invalid_attribute():
2020
raise AttributeError
21-
with mock.patch('os.getuid', invalid_attribute):
21+
with mock.patch('os.getuid', invalid_attribute, create=True):
2222
assert docker.getuid() == docker.FALLBACK_UID
2323

2424

2525
def test_docker_fallback_gid():
2626
def invalid_attribute():
2727
raise AttributeError
28-
with mock.patch('os.getgid', invalid_attribute):
28+
with mock.patch('os.getgid', invalid_attribute, create=True):
2929
assert docker.getgid() == docker.FALLBACK_GID

0 commit comments

Comments
 (0)