Skip to content

Commit

Permalink
Skip one hot nan test on python 3.8 and earlier.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 993c838d56e03dd28dbb145d0ad19e1a8edcc3c5
  • Loading branch information
kboyd committed Nov 23, 2022
1 parent 0ff0fe1 commit 91f2214
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/timeseries_dgan/test_transformations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import itertools
import sys

import numpy as np
import pytest
Expand Down Expand Up @@ -141,6 +142,10 @@ def test_one_hot_encoded_output_string():
assert_array_equal(expected2, output.inverse_transform(transformed2))


@pytest.mark.skipif(
sys.version_info < (3, 9),
reason="unknown bug makes nan comparisons for this test not work on python3.8",
)
def test_one_hot_encoded_output_nans():
output = OneHotEncodedOutput(name="foo")

Expand Down

0 comments on commit 91f2214

Please sign in to comment.