Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Mar 21, 2024
1 parent 20ce128 commit 95c8df7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
2 changes: 0 additions & 2 deletions pandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,6 @@
# Pandas is not (yet) a py.typed library: the public API is determined
# based on the documentation.
__all__ = [
"__version__",
"__git_version__",
"ArrowDtype",
"BooleanDtype",
"Categorical",
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def check(self, namespace, expected, ignored=None):
class TestPDApi(Base):
# these are optionally imported based on testing
# & need to be ignored
ignored = ["tests", "locale", "conftest", "_version_meson"]
ignored = ["tests", "locale", "conftest", "_version"]

# top-level sub-packages
public_lib = [
Expand Down
12 changes: 2 additions & 10 deletions pandas/util/_print_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,9 @@ def _get_commit_hash() -> str | None:
Use vendored versioneer code to get git hash, which handles
git worktree correctly.
"""
try:
from pandas._version_meson import ( # pyright: ignore [reportMissingImports]
__git_version__,
)
from pandas._version import git_revision # pyright: ignore [reportMissingImports]

return __git_version__
except ImportError:
from pandas._version import get_versions

versions = get_versions() # type: ignore[no-untyped-call]
return versions["full-revisionid"]
return git_revision


def _get_sys_info() -> dict[str, JSONSerializable]:
Expand Down
2 changes: 1 addition & 1 deletion scripts/validate_unwanted_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"_global_config",
"_chained_assignment_msg",
"_chained_assignment_method_msg",
"_version_meson",
"_version",
# The numba extensions need this to mock the iloc object
"_iLocIndexer",
# TODO(4.0): GH#55043 - remove upon removal of CoW option
Expand Down

0 comments on commit 95c8df7

Please sign in to comment.