/usr/lib/python2.7/dist-packages/mx/DateTime/mxDateTime/testnumpy.py is in python-egenix-mxdatetime 3.2.9-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | """ Tests for #823: mxDateTime 3.2 coercion no longer works with numpy
"""
import numpy
from mx.DateTime import *
print 'Testing mxDateTime with numpy...'
print
delta_t = numpy.arange(5) * oneHour
t0 = now()
t1 = delta_t + t0
print t1
t2 = t0 + delta_t
print t2
for i in xrange(1000):
t1 = delta_t + t0
t2 = t0 + delta_t
print
print 'Works.'
|