06a7794e2b0cecfbb50f818df3c2bd585c1f35de,bokeh/core/tests/test_properties.py,TestProperties,test_Bool,#TestProperties#,818
Before Change
self.assertFalse(prop.is_valid({}))
self.assertFalse(prop.is_valid(Foo()))
try:
import numpy as np
self.assertTrue(prop.is_valid(np.bool8(False)))
self.assertTrue(prop.is_valid(np.bool8(True)))
self.assertFalse(prop.is_valid(np.int8(0)))
self.assertFalse(prop.is_valid(np.int8(1)))
self.assertFalse(prop.is_valid(np.int16(0)))
self.assertFalse(prop.is_valid(np.int16(1)))
self.assertFalse(prop.is_valid(np.int32(0)))
self.assertFalse(prop.is_valid(np.int32(1)))
self.assertFalse(prop.is_valid(np.int64(0)))
self.assertFalse(prop.is_valid(np.int64(1)))
self.assertFalse(prop.is_valid(np.uint8(0)))
self.assertFalse(prop.is_valid(np.uint8(1)))
self.assertFalse(prop.is_valid(np.uint16(0)))
self.assertFalse(prop.is_valid(np.uint16(1)))
self.assertFalse(prop.is_valid(np.uint32(0)))
self.assertFalse(prop.is_valid(np.uint32(1)))
self.assertFalse(prop.is_valid(np.uint64(0)))
self.assertFalse(prop.is_valid(np.uint64(1)))
self.assertFalse(prop.is_valid(np.float16(0)))
self.assertFalse(prop.is_valid(np.float16(1)))
self.assertFalse(prop.is_valid(np.float32(0)))
self.assertFalse(prop.is_valid(np.float32(1)))
self.assertFalse(prop.is_valid(np.float64(0)))
self.assertFalse(prop.is_valid(np.float64(1)))
self.assertFalse(prop.is_valid(np.complex64(1.0+1.0j)))
self.assertFalse(prop.is_valid(np.complex128(1.0+1.0j)))
self.assertFalse(prop.is_valid(np.complex256(1.0+1.0j)))
except ImportError:
pass
def test_Int(self):
prop = Int()
self.assertTrue(prop.is_valid(None))
After Change
self.assertFalse(prop.is_valid(np.float64(1)))
self.assertFalse(prop.is_valid(np.complex64(1.0+1.0j)))
self.assertFalse(prop.is_valid(np.complex128(1.0+1.0j)))
if hasattr(np, "complex256"):
self.assertFalse(prop.is_valid(np.complex256(1.0+1.0j)))
def test_Int(self):
prop = Int()
self.assertTrue(prop.is_valid(None))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: bokeh/bokeh
Commit Name: 06a7794e2b0cecfbb50f818df3c2bd585c1f35de
Time: 2016-07-05
Author: bryanv@continuum.io
File Name: bokeh/core/tests/test_properties.py
Class Name: TestProperties
Method Name: test_Bool
Project Name: bokeh/bokeh
Commit Name: 06a7794e2b0cecfbb50f818df3c2bd585c1f35de
Time: 2016-07-05
Author: bryanv@continuum.io
File Name: bokeh/core/tests/test_properties.py
Class Name: TestProperties
Method Name: test_Int
Project Name: bokeh/bokeh
Commit Name: 06a7794e2b0cecfbb50f818df3c2bd585c1f35de
Time: 2016-07-05
Author: bryanv@continuum.io
File Name: bokeh/core/tests/test_properties.py
Class Name: TestProperties
Method Name: test_Complex
Project Name: bokeh/bokeh
Commit Name: 06a7794e2b0cecfbb50f818df3c2bd585c1f35de
Time: 2016-07-05
Author: bryanv@continuum.io
File Name: bokeh/core/tests/test_properties.py
Class Name: TestProperties
Method Name: test_Float