Skip to content

Commit 702b29a

Browse files
committed
test deps
1 parent d76a257 commit 702b29a

9 files changed

+18
-11
lines changed

ci/deps/azure-27-compat.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
- numpy=1.12.0
1111
- openpyxl=2.5.5
1212
- pytables=3.4.2
13-
- python-dateutil=2.6.0
13+
- python-dateutil=2.5.0
1414
- python=2.7*
1515
- pytz=2013b
1616
- scipy=0.18.1

ci/deps/azure-macos-35.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ dependencies:
2525
# universal
2626
- pytest
2727
- pytest-xdist
28+
- python-dateutil==2.5.0
2829
- pip:
29-
- python-dateutil==2.6.0
3030
- hypothesis>=3.58.0

ci/deps/azure-windows-36.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies:
1414
- parquet-cpp
1515
- pyarrow
1616
- pytables
17-
- python-dateutil
17+
- python-dateutil=2.5.0
1818
- python=3.6.6
1919
- pytz
2020
- scipy

ci/deps/travis-27.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies:
2828
- pytables
2929
- blosc=1.14.3
3030
- python-blosc
31-
- python-dateutil=2.6.0
31+
- python-dateutil=2.5.0
3232
- python=2.7*
3333
- pytz=2013b
3434
- s3fs

ci/deps/travis-36-doc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies:
2727
- pyarrow
2828
- pyqt
2929
- pytables
30-
- python-dateutil
30+
- python-dateutil=2.5.0
3131
- python-snappy
3232
- python=3.6*
3333
- pytz

ci/deps/travis-37.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
- botocore>=1.11
99
- cython>=0.28.2
1010
- numpy
11-
- python-dateutil
11+
- python-dateutil=2.5.0
1212
- nomkl
1313
- pyarrow
1414
- pytz

ci/run_tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ do
4545
NUM_JOBS=2
4646
fi
4747

48-
PYTEST_CMD="pytest -m \"$TYPE_PATTERN$PATTERN\" -n $NUM_JOBS -s --strict --durations=10 --junitxml=test-data-$TYPE.xml $TEST_ARGS $COVERAGE pandas"
48+
PYTEST_CMD="pytest -m \"$TYPE_PATTERN$PATTERN\" -k test_dt_timetz_accessor -n $NUM_JOBS -s -v --strict --durations=10 --junitxml=test-data-$TYPE.xml $TEST_ARGS $COVERAGE pandas"
4949
echo $PYTEST_CMD
5050
# if no tests are found (the case of "single and slow"), pytest exits with code 5, and would make the script fail, if not for the below code
5151
sh -c "$PYTEST_CMD; ret=\$?; [ \$ret = 5 ] && exit 0 || exit \$ret"

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
# required
77
- numpy>=1.15
88
- python=3
9-
- python-dateutil>=2.6.0
9+
- python-dateutil=2.5.0
1010
- pytz
1111

1212
# development

pandas/tests/series/test_datetime_values.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,16 @@ def test_dt_timetz_accessor(self, tz_naive_fixture):
536536
expected = Series([time(23, 56, tzinfo=tz), time(21, 24, tzinfo=tz),
537537
time(22, 14, tzinfo=tz)])
538538
result = s.dt.timetz
539-
print('result', result)
540-
print('expected', expected)
541-
tm.assert_series_equal(result, expected)
539+
540+
assert s.dt.tz is expected.ix[0].tzinfo
541+
542+
try:
543+
tm.assert_series_equal(result, expected)
544+
except:
545+
import warnings
546+
warnings.warn('result: {} {}'.format(result.ix[0].tzinfo, result))
547+
warnings.warn('expected: {} {}'.format(expected.ix[0].tzinfo, expected))
548+
tm.assert_series_equal(result, expected)
542549

543550
def test_setitem_with_string_index(self):
544551
# GH 23451

0 commit comments

Comments
 (0)