@@ -562,14 +562,16 @@ def testInt64Indices(self):
562
562
def testWarnings (self ):
563
563
# TODO(gunan) Reenable after this issue is fixed:
564
564
# https://github.com/google/protobuf/issues/2812
565
- if sys .version_info < (3 , 6 ):
566
- # Smaller than the threshold: no warning.
567
- c_sparse = ops .IndexedSlices (
568
- array_ops .placeholder (dtypes .float32 ),
569
- array_ops .placeholder (dtypes .int32 ), constant ([4 , 4 , 4 , 4 ]))
570
- with warnings .catch_warnings (record = True ) as w :
571
- math_ops .multiply (c_sparse , 1.0 )
572
- self .assertEqual (0 , len (w ))
565
+ if sys .version_info >= (3 , 6 ):
566
+ self .skipTest ("Skipped test for Python 3.6+" )
567
+
568
+ # Smaller than the threshold: no warning.
569
+ c_sparse = ops .IndexedSlices (
570
+ array_ops .placeholder (dtypes .float32 ),
571
+ array_ops .placeholder (dtypes .int32 ), constant ([4 , 4 , 4 , 4 ]))
572
+ with warnings .catch_warnings (record = True ) as w :
573
+ math_ops .multiply (c_sparse , 1.0 )
574
+ self .assertEqual (0 , len (w ))
573
575
574
576
# Greater than or equal to the threshold: warning.
575
577
c_sparse = ops .IndexedSlices (
0 commit comments