kopia lustrzana https://github.com/jupyterhub/repo2docker
More idiomatic way of checking if all items on a list are same
rodzic
4419890c01
commit
b4f012799b
|
@ -96,4 +96,5 @@ def test_memlimit_same_postbuild():
|
||||||
for fp in filepaths:
|
for fp in filepaths:
|
||||||
with open(fp) as f:
|
with open(fp) as f:
|
||||||
file_contents.append(f.read())
|
file_contents.append(f.read())
|
||||||
assert all(c == file_contents[0] for c in file_contents)
|
# Make sure they're all the same
|
||||||
|
assert len(set(file_contents)) == 1
|
||||||
|
|
Ładowanie…
Reference in New Issue