Skip to content

Commit

Permalink
Only try to delete the build directory if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrobins committed Jul 18, 2023
1 parent f6a258d commit 4a4794a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ def test_no_os_version(self, capfd, chdir_build):
class TestAndroid:
@pytest.fixture(scope="class", autouse=True)
def android_setup(self):
shutil.rmtree("build")
if os.path.exists("build"):
shutil.rmtree("build")
yield

def test_android_armv8(self, capfd, chdir_build):
Expand Down

0 comments on commit 4a4794a

Please sign in to comment.