kopia lustrzana https://github.com/jupyterhub/repo2docker
Make black happy
rodzic
34a7e33148
commit
672c21ff82
|
@ -48,12 +48,12 @@ def test_editable_by_host():
|
|||
["sh", "-c", "ls testfile????????.txt"]
|
||||
)
|
||||
assert status == 0
|
||||
assert re.match(br"^testfile\w{8}\.txt\n$", output) is not None
|
||||
assert re.match(rb"^testfile\w{8}\.txt\n$", output) is not None
|
||||
# After exiting the with block the file should stop existing
|
||||
# in the container as well as locally
|
||||
status, output = container._c.exec_run(["sh", "-c", "ls testfile????????.txt"])
|
||||
assert status == 2
|
||||
assert re.match(br"^testfile\w{8}\.txt\n$", output) is None
|
||||
assert re.match(rb"^testfile\w{8}\.txt\n$", output) is None
|
||||
|
||||
finally:
|
||||
# stop the container, we don't care how it stops or
|
||||
|
|
Ładowanie…
Reference in New Issue