summaryrefslogtreecommitdiff
path: root/_test/test_numpy.py
diff options
context:
space:
mode:
Diffstat (limited to '_test/test_numpy.py')
-rw-r--r--_test/test_numpy.py38
1 files changed, 20 insertions, 18 deletions
diff --git a/_test/test_numpy.py b/_test/test_numpy.py
index 573f0bd..24eb768 100644
--- a/_test/test_numpy.py
+++ b/_test/test_numpy.py
@@ -1,22 +1,24 @@
# coding: utf-8
-try:
- import numpy
-except: # NOQA
- numpy = None
+# try:
+# import numpy
+# except: # NOQA
+# numpy = None
-def Xtest_numpy():
- import ruamel.yaml
-
- if numpy is None:
- return
- data = numpy.arange(10)
- print('data', type(data), data)
-
- yaml_str = ruamel.yaml.dump(data)
- datb = ruamel.yaml.load(yaml_str)
- print('datb', type(datb), datb)
-
- print('\nYAML', yaml_str)
- assert data == datb
+# def Xtest_numpy() -> None:
+# import ruamel.yaml
+#
+# if numpy is None:
+# return
+# data = numpy.arange(10)
+# print('data', type(data), data)
+#
+# buf = io.BytesIO()
+# ruamel.yaml.dump(data) # needs updating to use buffer
+# yaml_str = buf.getvalue().decode('utf-8')
+# datb = ruamel.yaml.load(yaml_str)
+# print('datb', type(datb), datb)
+#
+# print('\nYAML', yaml_str)
+# assert data == datb