Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6b72c6

Browse files
committed
test conversion: move old-style test to new-style test
svn path=/trunk/matplotlib/; revision=7697
1 parent 2746e9c commit f6b72c6

3 files changed

Lines changed: 15 additions & 59 deletions

File tree

lib/matplotlib/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,7 @@ def tk_window_focus():
879879
default_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',

lib/matplotlib/tests/test_cbook.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 )

test/test_matplotlib/TestCookbook.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)