RonnyPfannschmidt <opensou...@ronnypfannschmidt.de> writes: > since quite a while now we have used magic constants for scope names,
Are you talking about the "module" string in ``@pytest.fixture(scope='module')``? > while we have something perfectly fitting already at hand - namely the > Node classes we actually use and mean So are you suggesting ``@pytest.fixture(scope=pytest.Module)`` instead? > i believe its a disservice that we use magic strings one has to manually > map while we have very exact names for those already If the above is what you're suggesting I can't imagine users to be very happy about this. To be honest even pytest.Module seems pretty ad-hoc to me. If there is a good reason to have something which is not a string at some point there's no harm into accepting both, they're still unique objects. I just don't currently understand why this might be needed or desirable. _______________________________________________ pytest-dev mailing list pytest-dev@python.org https://mail.python.org/mailman/listinfo/pytest-dev