File tree 4 files changed +2
-12
lines changed
4 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 186
186
187
187
_built_with_meson = True
188
188
except ImportError :
189
- from pandas ._version import get_versions
190
-
191
- v = get_versions ()
192
- __version__ = v .get ("closest-tag" , v ["version" ])
193
- __git_version__ = v .get ("full-revisionid" )
194
- del get_versions , v
189
+ from .__version import version as __version__
195
190
196
191
# GH#55043 - deprecation of the data_manager option
197
192
if "PANDAS_DATA_MANAGER" in os .environ :
Original file line number Diff line number Diff line change @@ -193,8 +193,6 @@ class TestPDApi(Base):
193
193
"_testing" ,
194
194
"_typing" ,
195
195
]
196
- if not pd ._built_with_meson :
197
- private_modules .append ("_version" )
198
196
199
197
def test_api (self ):
200
198
checkthese = (
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ def test_standardize_mapping():
159
159
dd = collections .defaultdict (list )
160
160
assert isinstance (com .standardize_mapping (dd ), partial )
161
161
162
-
162
+ @ pytest . mark . xfail ( reason = "deb_nonversioneer_version patch" )
163
163
def test_git_version ():
164
164
# GH 21295
165
165
git_version = pd .__git_version__
Original file line number Diff line number Diff line change @@ -55,9 +55,6 @@ def test_show_versions_console(capsys):
55
55
# check header
56
56
assert "INSTALLED VERSIONS" in result
57
57
58
- # check full commit hash
59
- assert re .search (r"commit\s*:\s[0-9a-f]{40}\n" , result )
60
-
61
58
# check required dependency
62
59
# 2020-12-09 npdev has "dirty" in the tag
63
60
# 2022-05-25 npdev released with RC wo/ "dirty".
You can’t perform that action at this time.
0 commit comments