@@ -336,9 +336,9 @@ def test_read_known_and_unknown_sids(self):
336336 # E.g.
337337 # INVALID VALID INVALID VALID ... VALID INVALID
338338 query_assets = (
339- [self .assets [- 1 ] + 1 ] +
340- list (range (self .assets [0 ], self .assets [- 1 ] + 1 )) +
341- [self .assets [- 1 ] + 3 ]
339+ [self .assets [- 1 ] + 1 ] +
340+ list (range (self .assets [0 ], self .assets [- 1 ] + 1 )) +
341+ [self .assets [- 1 ] + 3 ]
342342 )
343343
344344 columns = [CLOSE , VOLUME ]
@@ -609,10 +609,10 @@ def test_write_attrs(self):
609609 result = self .bcolz_daily_bar_ctable
610610 expected_first_row = {
611611 '1' : 0 ,
612- '3' : 5 , # Asset 1 has 5 trading days.
613- '5' : 12 , # Asset 3 has 7 trading days.
614- '7' : 33 , # Asset 5 has 21 trading days.
615- '9' : 44 , # Asset 7 has 11 trading days.
612+ '3' : 5 , # Asset 1 has 5 trading days.
613+ '5' : 12 , # Asset 3 has 7 trading days.
614+ '7' : 33 , # Asset 5 has 21 trading days.
615+ '9' : 44 , # Asset 7 has 11 trading days.
616616 '11' : 49 , # Asset 9 has 5 trading days.
617617 }
618618 expected_last_row = {
@@ -621,14 +621,14 @@ def test_write_attrs(self):
621621 '5' : 32 ,
622622 '7' : 43 ,
623623 '9' : 48 ,
624- '11' : 57 , # Asset 11 has 9 trading days.
624+ '11' : 57 , # Asset 11 has 9 trading days.
625625 }
626626 expected_calendar_offset = {
627- '1' : 0 , # Starts on 6-01, 1st trading day of month.
628- '3' : 15 , # Starts on 6-22, 16th trading day of month.
629- '5' : 1 , # Starts on 6-02, 2nd trading day of month.
630- '7' : 0 , # Starts on 6-01, 1st trading day of month.
631- '9' : 9 , # Starts on 6-12, 10th trading day of month.
627+ '1' : 0 , # Starts on 6-01, 1st trading day of month.
628+ '3' : 15 , # Starts on 6-22, 16th trading day of month.
629+ '5' : 1 , # Starts on 6-02, 2nd trading day of month.
630+ '7' : 0 , # Starts on 6-01, 1st trading day of month.
631+ '9' : 9 , # Starts on 6-12, 10th trading day of month.
632632 '11' : 10 , # Starts on 6-15, 11th trading day of month.
633633 }
634634 self .assertEqual (result .attrs ['first_row' ], expected_first_row )
@@ -706,7 +706,7 @@ def test_missing_values_assertion(self):
706706 "[Timestamp('2015-06-15 00:00:00+0000', tz='UTC')]\n "
707707 "Extra sessions: []"
708708 )
709- with self .assertRaisesRegexp (AssertionError , expected_msg ):
709+ with self .assertRaisesRegex (AssertionError , expected_msg ):
710710 writer .write (bar_data )
711711
712712
0 commit comments