Skip to content

Commit eaa1413

Browse files
author
victor
committed
Reverted test with exceptions for strings without unit.
1 parent 708fd66 commit eaa1413

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/scalar/timedelta/test_construction.py

+4
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ def test_construction():
8585
with pytest.raises(ValueError):
8686
Timedelta('10 days -1 h 1.5m 1s 3us')
8787

88+
# no units specified
89+
with pytest.raises(ValueError):
90+
Timedelta('3.1415')
91+
8892
# invalid construction
8993
tm.assert_raises_regex(ValueError, "cannot construct a Timedelta",
9094
lambda: Timedelta())

0 commit comments

Comments
 (0)