Remove unused copy-paste remnants in tests

This commit is contained in:
Erik Sundell
2023-05-15 10:49:56 +02:00
parent c093aa0e50
commit b366d6b63f
2 changed files with 0 additions and 3 deletions

View File

@@ -93,7 +93,6 @@ def permissions_test(group, path, *, readable=None, writable=None, dirs_only=Fal
# check if the path should be writable # check if the path should be writable
if writable is not None: if writable is not None:
if access(path, os.W_OK) != writable: if access(path, os.W_OK) != writable:
stat = os.stat(path)
info = pool.submit(debug_uid_gid).result() info = pool.submit(debug_uid_gid).result()
failures.append( failures.append(
"{} {} should {}be writable by {} [{}]".format( "{} {} should {}be writable by {} [{}]".format(
@@ -104,7 +103,6 @@ def permissions_test(group, path, *, readable=None, writable=None, dirs_only=Fal
# check if the path should be readable # check if the path should be readable
if readable is not None: if readable is not None:
if access(path, os.R_OK) != readable: if access(path, os.R_OK) != readable:
stat = os.stat(path)
info = pool.submit(debug_uid_gid).result() info = pool.submit(debug_uid_gid).result()
failures.append( failures.append(
"{} {} should {}be readable by {} [{}]".format( "{} {} should {}be readable by {} [{}]".format(

View File

@@ -14,7 +14,6 @@ def prefix():
""" """
Provide a temporary directory with a mambaforge conda environment Provide a temporary directory with a mambaforge conda environment
""" """
machine = os.uname().machine
installer_url, checksum = installer._mambaforge_url() installer_url, checksum = installer._mambaforge_url()
with tempfile.TemporaryDirectory() as tmpdir: with tempfile.TemporaryDirectory() as tmpdir:
with conda.download_miniconda_installer( with conda.download_miniconda_installer(