Repository: googleapis/python-db-dtypes-pandas (language: python)

Issue:
The build failed
This test failed!

To configure my behavior, see [the Flaky Bot documentation](https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot).

If I'm commenting on this issue too often, add the `flakybot: quiet` label and
I will stop commenting.

---

commit: a97c34198cbed37c8ff8ea683d485ebe36b804d7
buildURL: [Build Status](https://source.cloud.google.com/results/invocations/b1405c10-8a2f-43eb-ba01-7867c96c4cf3), [Sponge](http://sponge2/b1405c10-8a2f-43eb-ba01-7867c96c4cf3)
status: failed


Discussion / hints:

Fix patch:
diff --git a/owlbot.py b/owlbot.py
index d1b3c08..2c0ea58 100644
--- a/owlbot.py
+++ b/owlbot.py
@@ -34,7 +34,7 @@
         "pandas": "https://pandas.pydata.org/pandas-docs/stable/"
     },
 )
-s.move(templated_files, excludes=["docs/multiprocessing.rst", "README.rst"])
+s.move(templated_files, excludes=["docs/multiprocessing.rst", "README.rst", ".github/workflows/unittest.yml"])
 
 # ----------------------------------------------------------------------------
 # Fixup files


Test patch:
diff --git a/.github/workflows/unittest-prerelease.yml b/.github/workflows/unittest-prerelease.yml
deleted file mode 100644
index 9d30c75..0000000
--- a/.github/workflows/unittest-prerelease.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-on:
-  pull_request:
-    branches:
-      - main
-name: unittest-prerelease
-jobs:
-  unit-prerelease:
-    runs-on: ubuntu-latest
-    strategy:
-      matrix:
-        python: ['3.12']
-    steps:
-    - name: Checkout
-      uses: actions/checkout@v4
-    - name: Setup Python
-      uses: actions/setup-python@v5
-      with:
-        python-version: ${{ matrix.python }}
-    - name: Install nox
-      run: |
-        python -m pip install --upgrade setuptools pip wheel
-        python -m pip install nox
-    - name: Run unit tests
-      env:
-        COVERAGE_FILE: .coverage-prerelease-${{ matrix.python }}
-      run: |
-        nox -s unit_prerelease
-    - name: Upload coverage results
-      uses: actions/upload-artifact@v4
-      with:
-        name: coverage-artifacts
-        path: .coverage-${{ matrix.python }}
diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml
index f4a337c..89f021e 100644
--- a/.github/workflows/unittest.yml
+++ b/.github/workflows/unittest.yml
@@ -31,10 +31,38 @@ jobs:
         name: coverage-artifact-${{ matrix.python }}
         path: .coverage-${{ matrix.python }}
 
+  unit-prerelease:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        python: ['3.12']
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v4
+    - name: Setup Python
+      uses: actions/setup-python@v5
+      with:
+        python-version: ${{ matrix.python }}
+    - name: Install nox
+      run: |
+        python -m pip install --upgrade setuptools pip wheel
+        python -m pip install nox
+    - name: Run unit tests
+      env:
+        COVERAGE_FILE: .coverage-prerelease-${{ matrix.python }}
+      run: |
+        nox -s unit_prerelease
+    - name: Upload coverage results
+      uses: actions/upload-artifact@v4
+      with:
+        name: coverage-artifact-prerelease-${{ matrix.python }}
+        path: .coverage-prerelease-${{ matrix.python }}
+
   cover:
     runs-on: ubuntu-latest
     needs:
         - unit
+        - unit-prerelease
     steps:
     - name: Checkout
       uses: actions/checkout@v4
diff --git a/tests/unit/test_dtypes.py b/tests/unit/test_dtypes.py
index 6584cee..f2c5593 100644
--- a/tests/unit/test_dtypes.py
+++ b/tests/unit/test_dtypes.py
@@ -314,7 +314,7 @@ def test__validate_scalar_invalid(dtype):
         (False, None),
         (True, None),
         (True, pd.NaT if pd else None),
-        (True, np.NaN if pd else None),
+        (True, "np.nan" if pd else None),
         (True, 42),
     ],
 )
@@ -328,6 +328,13 @@ def test_take(dtype, allow_fill, fill_value):
                 if dtype == "dbdate"
                 else datetime.time(0, 42, 42, 424242)
             )
+        elif fill_value == "np.nan":
+            expected_fill = pd.NaT
+            try:
+                fill_value = np.NaN
+            except AttributeError:
+                # `np.NaN` was removed in NumPy 2.0 release. Use `np.nan` instead
+                fill_value = np.nan
         else:
             expected_fill = pd.NaT
         b = a.take([1, -1, 3], allow_fill=True, fill_value=fill_value)