diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a1380be7..e3fa5ec1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,12 +13,9 @@ jobs: - name: diagnostic run: dtdoctor timeout-minutes: 1 - - name: test1 + - name: test run: pytest timeout-minutes: 1 - - name: test2 - run: python app/test1.py - timeout-minutes: 1 test-windows: runs-on: windows-latest steps: @@ -31,12 +28,9 @@ jobs: - name: diagnostic run: dtdoctor timeout-minutes: 1 - - name: test1 + - name: test run: pytest timeout-minutes: 1 - - name: test2 - run: python app/test1.py - timeout-minutes: 1 test-mac: runs-on: macos-latest steps: @@ -49,9 +43,6 @@ jobs: - name: diagnostic run: dtdoctor timeout-minutes: 1 - - name: test1 + - name: test run: pytest timeout-minutes: 1 - - name: test2 - run: python app/test1.py - timeout-minutes: 1 diff --git a/devtools/browser.py b/devtools/browser.py index 46710468..e8b7a94f 100644 --- a/devtools/browser.py +++ b/devtools/browser.py @@ -243,6 +243,8 @@ def remove_readonly(func, path, excinfo): warnings.warn( f"The temporary directory could not be deleted, execution will continue. {type(e)}: {e}", TempDirWarning ) + if self.debug: + print(f"Tempfile still exists?: {bool(os.path.isfile(str(self.temp_dir.name)))}") def sync_process_close(self): self.send_command("Browser.close") @@ -330,8 +332,6 @@ def close(self): self.sync_process_close() # I'd say race condition but the user needs to take care of it self.finish_close() - if self.debug: - print(f"Tempfile still exists?: {bool(os.path.isfile(str(self.temp_dir.name)))}") # These are effectively stubs to allow use with with def __enter__(self):