Giter Club home page Giter Club logo

Comments (4)

d-v-b avatar d-v-b commented on August 23, 2024

we need pytest because of this class

from zarr-python.

TomAugspurger avatar TomAugspurger commented on August 23, 2024

Thanks. I see that the __init__.py guards against pytest missing:

if importlib.util.find_spec("pytest") is not None:
from zarr.testing.store import StoreTests
else:
warnings.warn("pytest not installed, skipping test suite", stacklevel=2)
. So maybe the intended behavior is to just not have that class be importable if pytest isn't installed?

Here's the behavior I see in an environment without pytest:

In [1]: import zarr

In [2]: import zarr.testing
<ipython-input-2-02d20f6cfc6f>:1: UserWarning: pytest not installed, skipping test suite
  import zarr.testing

In [3]: zarr.testing.StoreTests
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[3], line 1
----> 1 zarr.testing.StoreTests

AttributeError: module 'zarr.testing' has no attribute 'StoreTests'

from zarr-python.

d-v-b avatar d-v-b commented on August 23, 2024

. So maybe the intended behavior is to just not have that class be importable if pytest isn't installed?

This seems right! (@jhamman feel free to issue a correction here).

from zarr-python.

jhamman avatar jhamman commented on August 23, 2024

Pytest should not be a required dependency so +1 to removing it.

from zarr-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.