diff --git a/tensorflow/python/ops/stateful_random_ops_test.py b/tensorflow/python/ops/stateful_random_ops_test.py index 4b04906ab82..a66e3ba3402 100644 --- a/tensorflow/python/ops/stateful_random_ops_test.py +++ b/tensorflow/python/ops/stateful_random_ops_test.py @@ -99,7 +99,9 @@ class StatefulRandomOpsTest(test.TestCase): check_results(expected_normal1, *f()) check_results(expected_normal2, *f()) - @test_util.run_v1_only + @test_util.run_v1_only( + ("This test is specifically for checking TF1 compatibility. " + "It cannot run under TF2.")) def testTF1(self): seed = 1234 shape = [2, 3]