Skip to content

Commit 3b859ce

Browse files
committed
Test for Python 3.4 with C locale
1 parent 8af6264 commit 3b859ce

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.travis.yml

+29
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,21 @@ matrix:
115115
apt:
116116
packages:
117117
- xsel
118+
# In allow_failures
119+
- python: 3.4
120+
env:
121+
- JOB_NAME: "34_slow_ascii"
122+
- JOB_TAG=_SLOW
123+
- NOSE_ARGS="slow and not network and not disabled"
124+
- LOCALE_OVERRIDE="C"
125+
- FULL_DEPS=true
126+
- CLIPBOARD=xsel
127+
- CACHE_NAME="34_slow_ascii"
128+
- USE_CACHE=true
129+
addons:
130+
apt:
131+
packages:
132+
- xsel
118133
# In allow_failures
119134
- python: 2.7
120135
env:
@@ -184,6 +199,20 @@ matrix:
184199
apt:
185200
packages:
186201
- xsel
202+
- python: 3.4
203+
env:
204+
- JOB_NAME: "34_slow_ascii"
205+
- JOB_TAG=_SLOW
206+
- NOSE_ARGS="slow and not network and not disabled"
207+
- LOCALE_OVERRIDE="C"
208+
- FULL_DEPS=true
209+
- CLIPBOARD=xsel
210+
- CACHE_NAME="34_slow_ascii"
211+
- USE_CACHE=true
212+
addons:
213+
apt:
214+
packages:
215+
- xsel
187216
- python: 2.7
188217
env:
189218
- JOB_NAME: "27_build_test_conda"

pandas/tests/formats/test_format.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2820,7 +2820,7 @@ def test_to_latex_filename(self):
28202820
self.assertEqual(df.to_latex(), f.read())
28212821

28222822
# test with utf-8 without encoding option
2823-
if compat.PY3: # python3 default encoding is utf-8
2823+
if compat.PY3: # python3: pandas default encoding is utf-8
28242824
with tm.ensure_clean('test.tex') as path:
28252825
df.to_latex(path)
28262826
with codecs.open(path, 'r') as f:
@@ -4295,7 +4295,7 @@ def format_func(x):
42954295
formatter = fmt.Datetime64Formatter(x, formatter=format_func)
42964296
result = formatter.get_result()
42974297
self.assertEqual(result, ['2016-01', '2016-02'])
4298-
4298+
42994299
def test_datetime64formatter_hoursecond(self):
43004300

43014301
x = Series(pd.to_datetime(['10:10:10.100', '12:12:12.120'],

0 commit comments

Comments
 (0)