File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1698,6 +1698,8 @@ def test_Microsecond():
1698
1698
1699
1699
1700
1700
def test_NanosecondGeneric ():
1701
+ if _np_version_under1p7 :
1702
+ raise nose .SkipTest ('numpy >= 1.7 required' )
1701
1703
timestamp = Timestamp (datetime (2010 , 1 , 1 ))
1702
1704
assert timestamp .nanosecond == 0
1703
1705
Original file line number Diff line number Diff line change @@ -583,7 +583,7 @@ cdef class _Timestamp(datetime):
583
583
if self .offset is None :
584
584
raise ValueError (" Cannot add integral value to Timestamp "
585
585
" without offset." )
586
- return Timestamp(self .offset. __mul__ ( other).apply(self ))
586
+ return Timestamp(( self .offset * other).apply(self ))
587
587
588
588
if isinstance (other, timedelta) or hasattr (other, ' delta' ):
589
589
nanos = _delta_to_nanoseconds(other)
You can’t perform that action at this time.
0 commit comments