You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[pandas] python3-mpytestpandas-kTestTimestamp2:14:00 ☁ master ☀
==========================================================================testsessionstarts==========================================================================platformdarwin--Python3.6.2, pytest-3.2.3, py-1.4.34, pluggy-0.4.0metadata: {'Python': '3.6.2', 'Platform': 'Darwin-15.4.0-x86_64-i386-64bit', 'Packages': {'pytest': '3.2.3', 'py': '1.4.34', 'pluggy': '0.4.0'}, 'Plugins': {'metadata': '1.5.0', 'html': '1.15.2'}}
rootdir: /Users/rito/GitHub/pandas, inifile: setup.cfgplugins: metadata-1.5.0, html-1.15.2collected15950items/2skippedpandas/tests/scalar/test_timestamp.py ................................................F......................
===============================================================================FAILURES================================================================================_____________________________________________________________________TestTimestamp.test_timestamp______________________________________________________________________self=<pandas.tests.scalar.test_timestamp.TestTimestampobjectat0x11b9c93c8>deftest_timestamp(self):
# GH#17329# tz-naive --> treat it as if it were UTC for purposes of timestamp()ts=Timestamp.now()
uts=ts.replace(tzinfo=utc)
assertts.timestamp() ==uts.timestamp()
tsc=Timestamp('2014-10-11 11:00:01.12345678', tz='US/Central')
utsc=tsc.tz_convert('UTC')
# utsc is a different representation of the same timeasserttsc.timestamp() ==utsc.timestamp()
ifPY3:
# should agree with datetime.timestamp methoddt=ts.to_pydatetime()
>assertdt.timestamp() ==ts.timestamp()
EAssertionError: assert1509729329.177965==1509761729.177965E+where1509729329.177965=<built-inmethodtimestampofdatetime.datetimeobjectat0x11baa9120>()
E+where<built-inmethodtimestampofdatetime.datetimeobjectat0x11baa9120>=datetime.datetime(2017, 11, 4, 2, 15, 29, 177965).timestampE+and1509761729.177965=<built-inmethodtimestampofTimestampobjectat0x11bb1be58>()
E+where<built-inmethodtimestampofTimestampobjectat0x11bb1be58>=Timestamp('2017-11-04 02:15:29.177965').timestamppandas/tests/scalar/test_timestamp.py:1110: AssertionError========================================================================15879testsdeselected============================================================================================================================1failed, 70passed, 2skipped, 15879deselectedin42.70seconds===================================================
Problem description
Seems that to_pydatetime does not treat the system locale.
Output of pd.show_versions()
[paste the output of pd.show_versions() here below this line]
Python 3.6.2 (default, Jul 17 2017, 16:44:47)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Code Sample, a copy-pastable example if possible
Problem description
Seems that
to_pydatetime
does not treat the system locale.Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here below this line]Python 3.6.2 (default, Jul 17 2017, 16:44:47)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
INSTALLED VERSIONS
commit: 27bbea7
python: 3.6.2.final.0
python-bits: 64
OS: Darwin
OS-release: 15.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: ja_JP.UTF-8
LOCALE: ja_JP.UTF-8
pandas: 0.22.0.dev0+49.g27bbea7ee
pytest: 3.2.3
pip: 9.0.1
setuptools: 36.6.0
Cython: 0.26
numpy: 1.13.3
scipy: 0.19.1
pyarrow: 0.7.1
xarray: None
IPython: 6.1.0
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: 0.4.0
matplotlib: 2.0.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.999999999
sqlalchemy: 1.1.14
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: