Skip to content

Instantly share code, notes, and snippets.

@jerryasher
Created October 26, 2017 22:45
Show Gist options
  • Save jerryasher/0e954abb32b30f5d56c074a8f8a5036c to your computer and use it in GitHub Desktop.
Save jerryasher/0e954abb32b30f5d56c074a8f8a5036c to your computer and use it in GitHub Desktop.
pelican unittest output
$ git pull origin
Updating 71625af8..56a48347
Fast-forward
pelican/tests/support.py | 4 ++--
pelican/tools/pelican_quickstart.py | 10 +++++-----
pelican/tools/pelican_themes.py | 2 +-
setup.py | 2 +-
4 files changed, 9 insertions(+), 9 deletions(-)
(py2.7) Dell15:~/d/workspace/pelican/pelican
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
contents.py.new
../samples/pelican.conf.py.test
nothing added to commit but untracked files present (use "git add" to track)
(py2.7) Dell15:~/d/workspace/pelican/pelican
$ python -Wd -m unittest discover
WARNING: c:\Python\Python27\Lib\pkgutil.py:186: ImportWarning: Not importing directory 'C:\users\jerry\venv\py2.7\lib\site-packages\sphinxcontrib': missing __init__.py
file, filename, etc = imp.find_module(subname, path)
WARNING: c:\Python\Python27\Lib\pkgutil.py:186: ImportWarning: Not importing directory 'c:\users\jerry\venv\py2.7\lib\site-packages\sphinxcontrib': missing __init__.py
file, filename, etc = imp.find_module(subname, path)
WARNING: c:\Python\Python27\Lib\pkgutil.py:186: ImportWarning: Not importing directory 'C:\users\jerry\venv\py2.7\lib\site-packages\mpl_toolkits': missing __init__.py
file, filename, etc = imp.find_module(subname, path)
WARNING: c:\Python\Python27\Lib\pkgutil.py:186: ImportWarning: Not importing directory 'c:\users\jerry\venv\py2.7\lib\site-packages\mpl_toolkits': missing __init__.py
file, filename, etc = imp.find_module(subname, path)
...................................................................................E...EE.EEE..............................................................................
......WARNING: C:\users\jerry\d\workspace\pelican\pelican\tests\test_testsuite.py:13: UserWarning: test warning
warnings.warn('test warning')
F.............FFF................
======================================================================
ERROR: test_can_symlink_when_hardlink_not_possible (tests.test_generators.TestStaticGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\users\jerry\d\workspace\pelican\pelican\tests\test_generators.py", line 860, in test_can_symlink_when_hardlink_not_possible
self.generator.generate_output(None)
File "c:\users\jerry\d\workspace\pelican\pelican\generators.py", line 691, in generate_output
self._link_or_copy_staticfile(sc)
File "c:\users\jerry\d\workspace\pelican\pelican\generators.py", line 733, in _link_or_copy_staticfile
self._link_staticfile(sc)
File "c:\users\jerry\d\workspace\pelican\pelican\generators.py", line 753, in _link_staticfile
os.symlink(source_path, save_as)
AttributeError: 'module' object has no attribute 'symlink'
======================================================================
ERROR: test_dont_link_by_default (tests.test_generators.TestStaticGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\users\jerry\d\workspace\pelican\pelican\tests\test_generators.py", line 832, in test_dont_link_by_default
self.assertFalse(os.path.samefile(self.startfile, self.endfile))
AttributeError: 'module' object has no attribute 'samefile'
======================================================================
ERROR: test_existing_symlink_is_considered_up_to_date (tests.test_generators.TestStaticGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\users\jerry\d\workspace\pelican\pelican\tests\test_generators.py", line 868, in test_existing_symlink_is_considered_up_to_date
os.symlink(self.startfile, self.endfile)
AttributeError: 'module' object has no attribute 'symlink'
======================================================================
ERROR: test_invalid_symlink_is_overwritten (tests.test_generators.TestStaticGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\users\jerry\d\workspace\pelican\pelican\tests\test_generators.py", line 880, in test_invalid_symlink_is_overwritten
os.symlink("invalid", self.endfile)
AttributeError: 'module' object has no attribute 'symlink'
======================================================================
ERROR: test_output_file_exists_and_is_newer (tests.test_generators.TestStaticGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\users\jerry\d\workspace\pelican\pelican\tests\test_generators.py", line 850, in test_output_file_exists_and_is_newer
self.generator.generate_output(None)
File "c:\users\jerry\d\workspace\pelican\pelican\generators.py", line 690, in generate_output
if self._file_update_required(sc):
File "c:\users\jerry\d\workspace\pelican\pelican\generators.py", line 714, in _file_update_required
os.path.samefile(source_path, save_as)):
AttributeError: 'module' object has no attribute 'samefile'
======================================================================
ERROR: test_output_file_is_linked_to_source (tests.test_generators.TestStaticGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\users\jerry\d\workspace\pelican\pelican\tests\test_generators.py", line 839, in test_output_file_is_linked_to_source
self.generator.generate_output(None)
File "c:\users\jerry\d\workspace\pelican\pelican\generators.py", line 691, in generate_output
self._link_or_copy_staticfile(sc)
File "c:\users\jerry\d\workspace\pelican\pelican\generators.py", line 733, in _link_or_copy_staticfile
self._link_staticfile(sc)
File "c:\users\jerry\d\workspace\pelican\pelican\generators.py", line 755, in _link_staticfile
os.link(source_path, save_as)
AttributeError: 'module' object has no attribute 'link'
======================================================================
FAIL: test_error_on_warning (tests.test_testsuite.TestSuiteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\users\jerry\d\workspace\pelican\pelican\tests\test_testsuite.py", line 13, in test_error_on_warning
warnings.warn('test warning')
AssertionError: UserWarning not raised
======================================================================
FAIL: test_detect_parent_breakout (tests.test_utils.TestSanitisedJoin)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\users\jerry\d\workspace\pelican\pelican\tests\test_utils.py", line 681, in test_detect_parent_breakout
"../test"
AssertionError: "Attempted to break out of output directory to /foo/test" does not match "Attempted to break out of output directory to C:\foo\test"
======================================================================
FAIL: test_detect_root_breakout (tests.test_utils.TestSanitisedJoin)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\users\jerry\d\workspace\pelican\pelican\tests\test_utils.py", line 691, in test_detect_root_breakout
"/test"
AssertionError: "Attempted to break out of output directory to /test" does not match "Attempted to break out of output directory to C:\test"
======================================================================
FAIL: test_pass_deep_subpaths (tests.test_utils.TestSanitisedJoin)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\users\jerry\d\workspace\pelican\pelican\tests\test_utils.py", line 700, in test_pass_deep_subpaths
os.path.join("/foo/bar", "test")
AssertionError: u'C:\\foo\\bar\\test' != u'/foo/bar\\test'
- C:\foo\bar\test
? ^^^ ^
+ /foo/bar\test
? ^ ^
----------------------------------------------------------------------
Ran 215 tests in 21.695s
FAILED (failures=4, errors=6, skipped=1)
(py2.7) Dell15:~/d/workspace/pelican/pelican
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment