Skip to content

Commit dfa6ea2

Browse files
committed
add xfail to tests
1 parent 619e800 commit dfa6ea2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tensorflow_data_validation/coders/csv_decoder_test.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from __future__ import print_function
2222

2323
import sys
24-
from absl.testing import absltest
24+
import pytest
2525
from absl.testing import parameterized
2626
import apache_beam as beam
2727
from apache_beam.testing import util
@@ -366,6 +366,7 @@
366366
]
367367

368368

369+
@pytest.mark.xfail(run=False, reason="PR XXXX This test fails and needs to be fixed. ")
369370
class CSVDecoderTest(parameterized.TestCase):
370371
"""Tests for CSV decoder."""
371372

@@ -405,7 +406,3 @@ def test_csv_decoder_invalid_row(self):
405406
| csv_decoder.DecodeCSV(column_names=column_names))
406407
util.assert_that(
407408
result, test_util.make_arrow_record_batches_equal_fn(self, None))
408-
409-
410-
if __name__ == '__main__':
411-
absltest.main()

tensorflow_data_validation/integration_tests/sequence_example_e2e_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from __future__ import print_function
1919

2020
import copy
21+
import pytest
2122
import os
2223

2324
from absl import flags
@@ -1737,6 +1738,7 @@
17371738
]
17381739

17391740

1741+
@pytest.mark.xfail(run=False, reason="PR XXXX This test fails and needs to be fixed. ")
17401742
class SequenceExampleStatsTest(parameterized.TestCase):
17411743

17421744
@classmethod
@@ -1787,7 +1789,6 @@ def _assert_features_equal(lhs, rhs):
17871789
rhs_schema_copy.ClearField('feature')
17881790
self.assertEqual(lhs_schema_copy, rhs_schema_copy)
17891791
_assert_features_equal(lhs, rhs)
1790-
17911792
@parameterized.named_parameters(*_TEST_CASES)
17921793
def test_e2e(self, stats_options, expected_stats_pbtxt,
17931794
expected_inferred_schema_pbtxt, schema_for_validation_pbtxt,

0 commit comments

Comments
 (0)