MCPcopy
hub / github.com/pandas-dev/pandas / test_stata_119

Method test_stata_119

pandas/tests/io/test_stata.py:1989–1998  ·  view source on GitHub ↗
(self, datapath)

Source from the content-addressed store, hash-verified

1987
1988 @pytest.mark.slow
1989 def test_stata_119(self, datapath):
1990 # Gzipped since contains 32,999 variables and uncompressed is 20MiB
1991 # Just validate that the reader reports correct number of variables
1992 # to avoid high peak memory
1993 with gzip.open(
1994 datapath("io", "data", "stata", "stata1_119.dta.gz"), "rb"
1995 ) as gz:
1996 with StataReader(gz) as reader:
1997 reader._ensure_open()
1998 assert reader._nvar == 32999
1999
2000 @pytest.mark.parametrize("version", [118, 119, None])
2001 @pytest.mark.parametrize("byteorder", ["little", "big"])

Callers

nothing calls this directly

Calls 4

StataReaderClass · 0.90
datapathFunction · 0.85
_ensure_openMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected