Skip to content

Commit

Permalink
Update use of numpy.float and numpy.int in test_schema_io.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverholworthy committed May 2, 2023
1 parent 96c37fe commit b2d8db6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/schema/test_schema_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_column_schema_protobuf_domain_check(tmpdir):
"col2",
tags=[],
properties={"domain": {"min": 0.0, "max": 10.0}},
dtype=numpy.float,
dtype=float,
is_list=False,
)
saved_schema = Schema([schema1, schema2])
Expand Down Expand Up @@ -167,7 +167,7 @@ def test_column_schema_set_protobuf(tmpdir, props1, props2, tags1, tags2, d_type

@pytest.mark.parametrize("properties", [{}, {"domain": {"min": 0, "max": 10}}])
@pytest.mark.parametrize("tags", [[], ["a", "b", "c"]])
@pytest.mark.parametrize("dtype", [numpy.float, numpy.int])
@pytest.mark.parametrize("dtype", [float, int])
@pytest.mark.parametrize("list_type", [True, False])
def test_schema_to_tensorflow_metadata(tmpdir, properties, tags, dtype, list_type):
# make sure we can round trip a schema to TensorflowMetadata without going to disk
Expand All @@ -187,7 +187,7 @@ def test_schema_to_tensorflow_metadata(tmpdir, properties, tags, dtype, list_typ
],
)
@pytest.mark.parametrize("tags", [[], ["a", "b", "c"]])
@pytest.mark.parametrize("dtype", [numpy.float, numpy.int])
@pytest.mark.parametrize("dtype", [float, int])
@pytest.mark.parametrize("list_type", [True, False])
def test_schema_to_tensorflow_metadata_json(tmpdir, properties, tags, dtype, list_type):
schema = Schema(
Expand Down

0 comments on commit b2d8db6

Please sign in to comment.