8000 CLN/TST: Cleanup tests in test_ujson.py · pandas-dev/pandas@06ae3da · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 06ae3da

Browse files
committed
CLN/TST: Cleanup tests in test_ujson.py
* Actually test the outputs * Add more parametrization * Take advantage of pytest features, such as exception contexts
1 parent 1070976 commit 06ae3da

File tree

2 files changed

+715
-1213
lines changed

2 files changed

+715
-1213
lines changed

pandas/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def string_dtype(request):
250250
return request.param
251251

252252

253-
@pytest.fixture(params=["float32", "float64"])
253+
@pytest.fixture(params=[float, "float32", "float64"])
254254
def float_dtype(request):
255255
"""
256256
Parameterized fixture for float dtypes.
@@ -262,7 +262,7 @@ def float_dtype(request):
262262
return request.param
263263

264264

265-
@pytest.fixture(params=["complex64", "complex128"])
265+
@pytest.fixture(params=[complex, "complex64", "complex128"])
266266
def complex_dtype(request):
267267
"""
268268
Parameterized fixture for complex dtypes.
@@ -275,7 +275,7 @@ def complex_dtype(request):
275275

276276

277277
UNSIGNED_INT_DTYPES = ["uint8", "uint16", "uint32", "uint64"]
278-
SIGNED_INT_DTYPES = ["int8", "int16", "int32", "int64"]
278+
SIGNED_INT_DTYPES = [int, "int8", "int16", "int32", "int64"]
279279
ALL_INT_DTYPES = UNSIGNED_INT_DTYPES + SIGNED_INT_DTYPES
280280

281281

0 commit comments

Comments
 (0)
0