Remove unneeded quote for forward slash based on review comment.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
12eadc6a00
commit
8f0570b962
@ -40,8 +40,8 @@ class DimensionDivTest(test_util.TensorFlowTestCase):
|
|||||||
"""Without from __future__ import division, __rdiv__ is used."""
|
"""Without from __future__ import division, __rdiv__ is used."""
|
||||||
if six.PY2: # Old division exists only in Python 2
|
if six.PY2: # Old division exists only in Python 2
|
||||||
two = tensor_shape.Dimension(2)
|
two = tensor_shape.Dimension(2)
|
||||||
message = (r"unsupported operand type\(s\) for \/: "
|
message = (r"unsupported operand type\(s\) for /: "
|
||||||
r"'int' and 'Dimension', please use \/\/ instead")
|
r"'int' and 'Dimension', please use // instead")
|
||||||
with self.assertRaisesRegexp(TypeError, message):
|
with self.assertRaisesRegexp(TypeError, message):
|
||||||
_ = 6 / two
|
_ = 6 / two
|
||||||
|
|
||||||
|
@ -209,16 +209,16 @@ class DimensionTest(test_util.TensorFlowTestCase):
|
|||||||
# Note: This test is related to GitHub issue 25790.
|
# Note: This test is related to GitHub issue 25790.
|
||||||
six = tensor_shape.Dimension(6)
|
six = tensor_shape.Dimension(6)
|
||||||
two = tensor_shape.Dimension(2)
|
two = tensor_shape.Dimension(2)
|
||||||
message = (r"unsupported operand type\(s\) for \/: "
|
message = (r"unsupported operand type\(s\) for /: "
|
||||||
r"'Dimension' and 'Dimension', please use \/\/ instead")
|
r"'Dimension' and 'Dimension', please use // instead")
|
||||||
with self.assertRaisesRegexp(TypeError, message):
|
with self.assertRaisesRegexp(TypeError, message):
|
||||||
_ = six / two
|
_ = six / two
|
||||||
message = (r"unsupported operand type\(s\) for \/: "
|
message = (r"unsupported operand type\(s\) for /: "
|
||||||
r"'Dimension' and 'int', please use \/\/ instead")
|
r"'Dimension' and 'int', please use // instead")
|
||||||
with self.assertRaisesRegexp(TypeError, message):
|
with self.assertRaisesRegexp(TypeError, message):
|
||||||
_ = six / 2
|
_ = six / 2
|
||||||
message = (r"unsupported operand type\(s\) for \/: "
|
message = (r"unsupported operand type\(s\) for /: "
|
||||||
r"'int' and 'Dimension', please use \/\/ instead")
|
r"'int' and 'Dimension', please use // instead")
|
||||||
with self.assertRaisesRegexp(TypeError, message):
|
with self.assertRaisesRegexp(TypeError, message):
|
||||||
_ = 6 / two
|
_ = 6 / two
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user