Skip to content

Commit

Permalink
Merge branch 'main' into schema-like-proto
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned authored Sep 22, 2024
2 parents 7351395 + fa420f3 commit ec5e415
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/utils/test_to_values_narwhals.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
import sys
from datetime import datetime
from pathlib import Path
Expand Down Expand Up @@ -63,7 +64,8 @@ def test_duration_raises():

# Check that exception mentions the duration[ns] type,
# which is what the pandas timedelta is converted into
assert (
'Field "timedelta" has type "Duration" which is not supported by Altair'
in e.value.args[0]

assert re.match(
r'^Field "timedelta" has type "Duration.*" which is not supported by Altair',
e.value.args[0],
)

0 comments on commit ec5e415

Please sign in to comment.