plexus-python-common 1.1.90__tar.gz → 1.1.91__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/PKG-INFO +1 -1
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus_python_common.egg-info/PKG-INFO +1 -1
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/numutils_test.py +13 -6
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/.editorconfig +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/.github/workflows/pr.yml +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/.github/workflows/push.yml +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/.gitignore +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/MANIFEST.in +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/README.md +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/VERSION +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/pyproject.toml +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/config/config.cfg +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/csvutils/data.csv +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/csvutils/data.tsv +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/pathutils/dir.baz/file.bar.baz +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/pathutils/dir.baz/file.foo.bar +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/pathutils/dir.baz/file.foo.baz +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/pathutils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/pathutils/dir.foo/dir.foo.bar/file.bar.baz +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/pathutils/dir.foo/dir.foo.bar/file.foo.bar +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/pathutils/dir.foo/dir.foo.bar/file.foo.baz +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/pathutils/dir.foo/file.bar +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/pathutils/dir.foo/file.baz +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/pathutils/dir.foo/file.foo +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/setup.cfg +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/setup.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/__init__.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/__init__.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/argutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/config.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/csvutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/dbutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/dtutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/funcutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/iterutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/jsonutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/logger.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/numutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/pathutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/randutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/retry.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/span.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/strutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/testutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/typeutils.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus_python_common.egg-info/SOURCES.txt +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus_python_common.egg-info/dependency_links.txt +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus_python_common.egg-info/not-zip-safe +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus_python_common.egg-info/requires.txt +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus_python_common.egg-info/top_level.txt +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/__init__.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/__init__.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/__init__.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/argutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/config_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/csvutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/dbutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/dtutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/funcutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/iterutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/jsonutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/logger_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/pathutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/randutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/retry_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/span_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/strutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/testutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/utils/typeutils_test.py +0 -0
- {plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/testenv.py +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import math
|
|
2
2
|
import unittest
|
|
3
|
+
from contextlib import nullcontext
|
|
3
4
|
from decimal import Decimal
|
|
4
5
|
|
|
5
6
|
import ddt
|
|
@@ -212,7 +213,8 @@ class NumUtilsTest(unittest.TestCase):
|
|
|
212
213
|
@ddt.idata(data_real_nan_greater)
|
|
213
214
|
@ddt.unpack
|
|
214
215
|
def test_real_nan_greater(self, a, b, expect):
|
|
215
|
-
self.
|
|
216
|
+
with self.assertWarns(RuntimeWarning) if is_nan(expect) else nullcontext():
|
|
217
|
+
self.assertResult(expect, real_nan_greater(a, b))
|
|
216
218
|
|
|
217
219
|
data_real_smaller = [
|
|
218
220
|
(None, None, None),
|
|
@@ -256,7 +258,8 @@ class NumUtilsTest(unittest.TestCase):
|
|
|
256
258
|
@ddt.idata(data_real_nan_smaller)
|
|
257
259
|
@ddt.unpack
|
|
258
260
|
def test_real_nan_smaller(self, a, b, expect):
|
|
259
|
-
self.
|
|
261
|
+
with self.assertWarns(RuntimeWarning) if is_nan(expect) else nullcontext():
|
|
262
|
+
self.assertResult(expect, real_nan_smaller(a, b))
|
|
260
263
|
|
|
261
264
|
data_real_max = [
|
|
262
265
|
([], None),
|
|
@@ -296,7 +299,8 @@ class NumUtilsTest(unittest.TestCase):
|
|
|
296
299
|
@ddt.idata(data_real_nan_max)
|
|
297
300
|
@ddt.unpack
|
|
298
301
|
def test_real_nan_max(self, xs, expect):
|
|
299
|
-
self.
|
|
302
|
+
with self.assertWarns(RuntimeWarning) if is_nan(expect) else nullcontext():
|
|
303
|
+
self.assertResult(expect, real_nan_max(xs))
|
|
300
304
|
|
|
301
305
|
data_real_min = [
|
|
302
306
|
([], None),
|
|
@@ -336,7 +340,8 @@ class NumUtilsTest(unittest.TestCase):
|
|
|
336
340
|
@ddt.idata(data_real_nan_min)
|
|
337
341
|
@ddt.unpack
|
|
338
342
|
def test_real_nan_min(self, xs, expect):
|
|
339
|
-
self.
|
|
343
|
+
with self.assertWarns(RuntimeWarning) if is_nan(expect) else nullcontext():
|
|
344
|
+
self.assertResult(expect, real_nan_min(xs))
|
|
340
345
|
|
|
341
346
|
data_real_mean = [
|
|
342
347
|
([], None),
|
|
@@ -376,7 +381,8 @@ class NumUtilsTest(unittest.TestCase):
|
|
|
376
381
|
@ddt.idata(data_real_nan_mean)
|
|
377
382
|
@ddt.unpack
|
|
378
383
|
def test_real_nan_mean(self, xs, expect):
|
|
379
|
-
self.
|
|
384
|
+
with self.assertWarns(RuntimeWarning) if is_nan(expect) else nullcontext():
|
|
385
|
+
self.assertResult(expect, real_nan_mean(xs))
|
|
380
386
|
|
|
381
387
|
data_real_std = [
|
|
382
388
|
([], None),
|
|
@@ -416,7 +422,8 @@ class NumUtilsTest(unittest.TestCase):
|
|
|
416
422
|
@ddt.idata(data_real_nan_std)
|
|
417
423
|
@ddt.unpack
|
|
418
424
|
def test_real_nan_std(self, xs, expect):
|
|
419
|
-
self.
|
|
425
|
+
with self.assertWarns(RuntimeWarning) if is_nan(expect) else nullcontext():
|
|
426
|
+
self.assertResult(expect, real_nan_std(xs))
|
|
420
427
|
|
|
421
428
|
def assertResult(self, expect, actual):
|
|
422
429
|
if expect is None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/config/config.cfg
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/csvutils/data.csv
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/resources/unittest/csvutils/data.tsv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/__init__.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/argutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/config.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/csvutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/dbutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/dtutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/funcutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/iterutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/jsonutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/logger.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/numutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/pathutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/randutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/retry.py
RENAMED
|
File without changes
|
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/strutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/testutils.py
RENAMED
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/src/plexus/common/utils/typeutils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plexus_python_common-1.1.90 → plexus_python_common-1.1.91}/test/plexus_tests/common/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|