Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/py-polars/tests/unit/meta/test_versions.py
8424 views
1
import warnings
2
from typing import Any
3
4
import pytest
5
6
import polars as pl
7
8
9
@pytest.mark.slow
10
def test_show_versions(capsys: Any) -> None:
11
with warnings.catch_warnings():
12
# Ignore DeprecationWarnings from dependency imports.
13
warnings.simplefilter("ignore", DeprecationWarning)
14
pl.show_versions()
15
16
out, _ = capsys.readouterr()
17
assert "Python" in out
18
assert "Polars" in out
19
assert "Runtime" in out
20
assert "Optional dependencies" in out
21
22