diff options
| author | 2022-04-29 01:59:01 -0400 | |
|---|---|---|
| committer | 2022-04-29 01:59:01 -0400 | |
| commit | a971286c1a08198f1d350f490751647a03a40eaf (patch) | |
| tree | 7afb87831e9700847a553961783d9fb192041461 /test | |
| parent | 12a2b5e5ba641f9d06a1999230b6466a25732001 (diff) | |
| parent | c6b88a96bd191711fc540d7babab3d2e09c68da8 (diff) | |
Update upstream source from tag 'upstream/1.21.2'
Update to upstream version '1.21.2'
with Debian dir e1311d68311ab5a6c4ef3871daa55e56eab958ba
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_util.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test_util.py b/test/test_util.py index 3cf3d68..c269c9e 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -385,8 +385,6 @@ class TestOther(unittest.TestCase): expr() def test_build_duration_func(self, f=util.build_duration_func): - for v in (0, 0.0, "", None, (), []): - self.assertIsNone(f(v)) def test_single(df, v): for _ in range(10): @@ -398,6 +396,12 @@ class TestOther(unittest.TestCase): self.assertGreaterEqual(v, lower) self.assertLessEqual(v, upper) + for v in (0, 0.0, "", None, (), []): + self.assertIsNone(f(v)) + + for v in (0, 0.0, "", None, (), []): + test_single(f(v, 1.0), 1.0) + test_single(f(3), 3) test_single(f(3.0), 3.0) test_single(f("3"), 3) |
