Skip to content

Commit

Permalink
simple
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Dec 9, 2022
1 parent 0a97f7c commit 1024200
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lightning_app/components/serve/python_server.py
Expand Up @@ -16,14 +16,12 @@

logger = Logger(__name__)

__doctest_skip__ = []
# Skip doctests if requirements aren't available
if not module_available("lightning_api_access"):
__doctest_skip__ += ["PythonServer", "PythonServer.*"]

__doctest_skip__ = ["PythonServer", "PythonServer.*"]
# Skip doctests if requirements aren't available
if not _is_torch_available():
__doctest_skip__ += ["PythonServer", "PythonServer.*"]
elif not _is_torch_available():
__doctest_skip__ = ["PythonServer", "PythonServer.*"]


def _get_device():
Expand Down

0 comments on commit 1024200

Please sign in to comment.