-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Followup to #21738 #21764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Followup to #21738 #21764
Conversation
pandas/tests/tslibs/test_api.py
Outdated
|
||
def test_namespace(): | ||
# just check that none of these raise NameErrors | ||
tslibs.normalize_date |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do something like this (and match against a fixed list)
In [7]: set([name for name in dir(tslibs) if not name.startswith('_')])
Out[7]:
{'NaT',
'OutOfBoundsDatetime',
'Timedelta',
'Timestamp',
'ccalendar',
'conversion',
'delta_to_nanoseconds',
'fields',
'frequencies',
'iNaT',
'ints_to_pytimedelta',
'localize_pydatetime',
'nattype',
'normalize_date',
'np_datetime',
'offsets',
'parsing',
'period',
'resolution',
'strptime',
'timedeltas',
'timestamps',
'timezones',
'tz_convert_single'}
In [8]: from pandas._libs import tslibs
Codecov Report
@@ Coverage Diff @@
## master #21764 +/- ##
=======================================
Coverage 91.93% 91.93%
=======================================
Files 160 160
Lines 49737 49737
=======================================
Hits 45724 45724
Misses 4013 4013
Continue to review full report at Codecov.
|
thanks @jbrockmendel |
Addresses comments/requests from #21738.