Created
July 6, 2018 11:37
-
-
Save jarvist/ae461f6dd22e1f989a0625bbf4b63f3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Fri06Jul-12:34]jarvist@nmscde005688:~/.local/lib/python3.5/site-packages/sumo/ | |
> python3 -m unittest discover tests | |
............/home/jarvist/.local/lib/python3.5/site-packages/monty/dev.py:214: UserWarning: Cannot install excepthook, IPyhon.core.ultratb not available | |
"Cannot install excepthook, IPyhon.core.ultratb not available") | |
.................................................EEEEEEEEE.E...EEFF.Froot | |
+--sub1 | |
+--sub2 | |
| +--sub2sub1 | |
+--sub3 | |
+--sub3sub1 | |
| +--sub3sub1sub1 | |
+--sub3sub2 | |
.one two | |
1 2 | |
.EE../home/jarvist/.local/lib/python3.5/site-packages/tests/test_shutil.py:103: DeprecationWarning: Please use assertEqual instead. | |
self.assertEquals(g.readline().decode("utf-8"), "what") | |
....command: ['sleep', '0.5'], retcode: 0 | |
.../home/jarvist/.local/lib/python3.5/site-packages/monty/shutil.py:40: UserWarning: Cannot copy /home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/tmpgd3nwjhc to itself | |
warnings.warn("Cannot copy %s to itself" % fpath) | |
FCurrent terminal type: xterm-256color | |
Test basic colors: | |
Grey color | |
Red color | |
Green color | |
Yellow color | |
Blue color | |
Magenta color | |
Cyan color | |
White color | |
------------------------------------------------------------------------------ | |
Test highlights: | |
On grey color | |
On red color | |
On green color | |
On yellow color | |
On blue color | |
On magenta color | |
On cyan color | |
On white color | |
------------------------------------------------------------------------------ | |
Test attributes: | |
Bold grey color | |
Dark red color | |
Underline green color | |
Blink yellow color | |
Reversed blue color | |
Concealed Magenta color | |
Bold underline reverse cyan color | |
Dark blink concealed white color | |
------------------------------------------------------------------------------ | |
Test mixing: | |
Underline red on grey color | |
Reversed green on red color | |
Hello world | |
Hello world | |
/home/jarvist/.local/lib/python3.5/site-packages/monty/termcolor.py:205: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 encoding='UTF-8'> | |
rc = os.popen('stty size', 'r').read().split() | |
terminal size: %s (93, 118) | |
.. | |
====================================================================== | |
ERROR: test_empty_file (tests.test_io.ReverseReadfileTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_io.py", line 110, in test_empty_file | |
os.path.join(test_dir, "empty_file.txt"))): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 89, in reverse_readfile | |
with zopen(filename, "rb") as f: | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 71, in zopen | |
return io.open(filename, *args, **kwargs) | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/empty_file.txt' | |
====================================================================== | |
ERROR: test_reverse_readfile (tests.test_io.ReverseReadfileTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_io.py", line 72, in test_reverse_readfile | |
for idx, line in enumerate(reverse_readfile(fname)): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 89, in reverse_readfile | |
with zopen(filename, "rb") as f: | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 71, in zopen | |
return io.open(filename, *args, **kwargs) | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/3000_lines.txt' | |
====================================================================== | |
ERROR: test_reverse_readfile_bz2 (tests.test_io.ReverseReadfileTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_io.py", line 98, in test_reverse_readfile_bz2 | |
for idx, line in enumerate(reverse_readfile(fname)): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 89, in reverse_readfile | |
with zopen(filename, "rb") as f: | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 59, in zopen | |
return bz2.open(filename, *args, **kwargs) | |
File "/usr/lib/python3.5/bz2.py", line 320, in open | |
binary_file = BZ2File(filename, bz_mode, compresslevel=compresslevel) | |
File "/usr/lib/python3.5/bz2.py", line 95, in __init__ | |
self._fp = _builtin_open(filename, mode) | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/3000_lines.txt.bz2' | |
====================================================================== | |
ERROR: test_reverse_readfile_gz (tests.test_io.ReverseReadfileTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_io.py", line 85, in test_reverse_readfile_gz | |
for idx, line in enumerate(reverse_readfile(fname)): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 89, in reverse_readfile | |
with zopen(filename, "rb") as f: | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 69, in zopen | |
return gzip.open(filename, *args, **kwargs) | |
File "/usr/lib/python3.5/gzip.py", line 53, in open | |
binary_file = GzipFile(filename, gz_mode, compresslevel) | |
File "/usr/lib/python3.5/gzip.py", line 163, in __init__ | |
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/3000_lines.txt.gz' | |
====================================================================== | |
ERROR: test_empty_file (tests.test_io.ReverseReadlineTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_io.py", line 56, in test_empty_file | |
with open(os.path.join(test_dir, "empty_file.txt")) as f: | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/empty_file.txt' | |
====================================================================== | |
ERROR: test_reverse_readline (tests.test_io.ReverseReadlineTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_io.py", line 32, in test_reverse_readline | |
with open(os.path.join(test_dir, "3000_lines.txt")) as f: | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/3000_lines.txt' | |
====================================================================== | |
ERROR: test_reverse_readline_bz2 (tests.test_io.ReverseReadlineTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_io.py", line 46, in test_reverse_readline_bz2 | |
with zopen(os.path.join(test_dir, "myfile_bz2.bz2"), "rb") as f: | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 59, in zopen | |
return bz2.open(filename, *args, **kwargs) | |
File "/usr/lib/python3.5/bz2.py", line 320, in open | |
binary_file = BZ2File(filename, bz_mode, compresslevel=compresslevel) | |
File "/usr/lib/python3.5/bz2.py", line 95, in __init__ | |
self._fp = _builtin_open(filename, mode) | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/myfile_bz2.bz2' | |
====================================================================== | |
ERROR: test_Path_objects (tests.test_io.ZopenTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_io.py", line 130, in test_Path_objects | |
with zopen(p, mode="rt") as f: | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 69, in zopen | |
return gzip.open(filename, *args, **kwargs) | |
File "/usr/lib/python3.5/gzip.py", line 53, in open | |
binary_file = GzipFile(filename, gz_mode, compresslevel) | |
File "/usr/lib/python3.5/gzip.py", line 163, in __init__ | |
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/myfile_gz.gz' | |
====================================================================== | |
ERROR: test_zopen (tests.test_io.ZopenTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_io.py", line 117, in test_zopen | |
with zopen(os.path.join(test_dir, "myfile_gz.gz"), mode="rt") as f: | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 69, in zopen | |
return gzip.open(filename, *args, **kwargs) | |
File "/usr/lib/python3.5/gzip.py", line 53, in open | |
binary_file = GzipFile(filename, gz_mode, compresslevel) | |
File "/usr/lib/python3.5/gzip.py", line 163, in __init__ | |
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/myfile_gz.gz' | |
====================================================================== | |
ERROR: tests.test_json (unittest.loader._FailedTest) | |
---------------------------------------------------------------------- | |
ImportError: Failed to import test module: tests.test_json | |
Traceback (most recent call last): | |
File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path | |
module = self._get_module_from_name(name) | |
File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name | |
__import__(name) | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_json.py", line 14, in <module> | |
from bson.objectid import ObjectId | |
ImportError: No module named 'bson' | |
====================================================================== | |
ERROR: test_cd (tests.test_os.CdTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_os.py", line 42, in test_cd | |
with cd(test_dir): | |
File "/usr/lib/python3.5/contextlib.py", line 59, in __enter__ | |
return next(self.gen) | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/os/__init__.py", line 30, in cd | |
os.chdir(path) | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files' | |
====================================================================== | |
ERROR: test_cd_exception (tests.test_os.CdTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_os.py", line 47, in test_cd_exception | |
with cd(test_dir): | |
File "/usr/lib/python3.5/contextlib.py", line 59, in __enter__ | |
return next(self.gen) | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/os/__init__.py", line 30, in cd | |
os.chdir(path) | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files' | |
====================================================================== | |
ERROR: test_regrep (tests.test_re.RegrepTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_re.py", line 30, in test_regrep | |
matches = regrep(fname, {"1": "1(\d+)", "3": "3(\d+)"}, postprocess=int) | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/re.py", line 47, in regrep | |
gen = reverse_readfile(filename) if reverse else zopen(filename, "rt") | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/io.py", line 71, in zopen | |
return io.open(filename, *args, **kwargs) | |
FileNotFoundError: [Errno 2] No such file or directory: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/3000_lines.txt' | |
====================================================================== | |
ERROR: test_dumpfn_loadfn (tests.test_serialization.SerialTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_serialization.py", line 29, in test_dumpfn_loadfn | |
dumpfn(d, "monte_test.mpk") | |
File "/home/jarvist/.local/lib/python3.5/site-packages/monty/serialization.py", line 104, in dumpfn | |
"Loading of message pack files is not " | |
RuntimeError: Loading of message pack files is not possible as msgpack-python is not installed. | |
====================================================================== | |
FAIL: test_makedirs_p (tests.test_os.Makedirs_pTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_os.py", line 61, in test_makedirs_p | |
self.assertRaises(OSError, makedirs_p, os.path.join(test_dir, "myfile_txt")) | |
AssertionError: OSError not raised by makedirs_p | |
====================================================================== | |
FAIL: test_find_exts (tests.test_os.PathTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_os.py", line 32, in test_find_exts | |
self.assertEqual(len(find_exts(os.path.dirname(__file__), "bz2")), 2) | |
AssertionError: 0 != 2 | |
====================================================================== | |
FAIL: test_zpath (tests.test_os.PathTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_os.py", line 28, in test_zpath | |
self.assertEqual(os.path.join(test_dir, "myfile_gz.gz"), fullzpath) | |
AssertionError: '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/myfile_gz.gz' != '/home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/myfile_gz' | |
- /home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/myfile_gz.gz | |
? --- | |
+ /home/jarvist/.local/lib/python3.5/site-packages/tests/test_files/myfile_gz | |
====================================================================== | |
FAIL: test_with_copy (tests.test_tempfile.ScratchDirTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/jarvist/.local/lib/python3.5/site-packages/tests/test_tempfile.py", line 39, in test_with_copy | |
self.assertIn("empty_file.txt", files) | |
AssertionError: 'empty_file.txt' not found in ['pre_scratch_text', 'scratch_text', 'myfile_txt'] | |
---------------------------------------------------------------------- | |
Ran 97 tests in 3.198s | |
FAILED (failures=4, errors=14) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment