File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -879,6 +879,7 @@ def tk_window_focus():
879879default_test_modules = [
880880 'matplotlib.tests.test_agg' ,
881881 'matplotlib.tests.test_basic' ,
882+ 'matplotlib.tests.test_cbook' ,
882883 'matplotlib.tests.test_transforms' ,
883884 'matplotlib.tests.test_axes' ,
884885 'matplotlib.tests.test_dates' ,
Original file line number Diff line number Diff line change 1+ import numpy as np
2+ import matplotlib .cbook as cbook
3+ from nose .tools import assert_equal
4+
5+ def test_is_string_like ():
6+ y = np .arange ( 10 )
7+ assert_equal ( cbook .is_string_like ( y ), False )
8+ y .shape = 10 , 1
9+ assert_equal ( cbook .is_string_like ( y ), False )
10+ y .shape = 1 , 10
11+ assert_equal ( cbook .is_string_like ( y ), False )
12+
13+ assert cbook .is_string_like ( "hello world" )
14+ assert_equal ( cbook .is_string_like (10 ), False )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments