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

Skip to content

Commit 804ade1

Browse files
committed
Typo + code beautification
1 parent 7893b7b commit 804ade1

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

lib/matplotlib/tests/test_mlab.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,10 @@ def test_csv2rec_names_with_comments(self):
360360
assert len(array.dtype) == 3
361361

362362
def test_csv2rec_usdate(self):
363-
self.fd.write('01/11/14\n' +
364-
'03/05/76 12:00:01 AM\n' +
365-
'07/09/83 5:17:34 PM\n' +
366-
'06/20/2054 2:31:45 PM\n' +
363+
self.fd.write('01/11/14\n'
364+
'03/05/76 12:00:01 AM\n'
365+
'07/09/83 5:17:34 PM\n'
366+
'06/20/2054 2:31:45 PM\n'
367367
'10/31/00 11:50:23 AM\n')
368368
expected = [datetime.datetime(2014, 1, 11, 0, 0),
369369
datetime.datetime(1976, 3, 5, 0, 0, 1),
@@ -376,9 +376,9 @@ def test_csv2rec_usdate(self):
376376

377377
def test_csv2rec_dayfirst(self):
378378
self.fd.write('11/01/14\n' +
379-
'05/03/76 12:00:01 AM\n' +
380-
'09/07/83 5:17:34 PM\n' +
381-
'20/06/2054 2:31:45 PM\n' +
379+
'05/03/76 12:00:01 AM\n'
380+
'09/07/83 5:17:34 PM\n'
381+
'20/06/2054 2:31:45 PM\n'
382382
'31/10/00 11:50:23 AM\n')
383383
expected = [datetime.datetime(2014, 1, 11, 0, 0),
384384
datetime.datetime(1976, 3, 5, 0, 0, 1),
@@ -390,10 +390,10 @@ def test_csv2rec_dayfirst(self):
390390
assert_array_equal(array['a'].tolist(), expected)
391391

392392
def test_csv2rec_yearfirst(self):
393-
self.fd.write('14/01/11\n' +
394-
'76/03/05 12:00:01 AM\n' +
395-
'83/07/09 5:17:34 PM\n' +
396-
'2054/06/20 2:31:45 PM\n' +
393+
self.fd.write('14/01/11\n'
394+
'76/03/05 12:00:01 AM\n'
395+
'83/07/09 5:17:34 PM\n'
396+
'2054/06/20 2:31:45 PM\n'
397397
'00/10/31 11:50:23 AM\n')
398398
expected = [datetime.datetime(2014, 1, 11, 0, 0),
399399
datetime.datetime(1976, 3, 5, 0, 0, 1),
@@ -2105,7 +2105,7 @@ def test_specgram_phase(self):
21052105
assert spec.shape[1] == self.t_specgram.shape[0]
21062106

21072107
def test_specgram_warn_only1seg(self):
2108-
"""Warning should be raised if len(x) <= len(NFFT). """
2108+
"""Warning should be raised if len(x) <= NFFT. """
21092109
with warnings.catch_warnings(record=True) as w:
21102110
mlab.specgram(x=self.y, NFFT=len(self.y), Fs=self.Fs)
21112111
assert len(w) == 1

0 commit comments

Comments
 (0)