Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Platform, test failures due to 
. #102

Open
idf opened this issue May 8, 2014 · 0 comments
Open

Windows Platform, test failures due to 
. #102

idf opened this issue May 8, 2014 · 0 comments

Comments

@idf
Copy link
Contributor

idf commented May 8, 2014

When running the test, there are 3 failures in tests.videos.ImageExtractionTests due to unexpected 
 at the tail, on the Windows NT machine

Danyang@DANIEL /d/Programming/python/python-goose (feature/win-file-97)
$ python setup.py test
running test
running egg_info
writing requirements to goose_extractor.egg-info\requires.txt
writing goose_extractor.egg-info\PKG-INFO
writing top-level names to goose_extractor.egg-info\top_level.txt
writing dependency_links to goose_extractor.egg-info\dependency_links.txt
reading manifest file 'goose_extractor.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'goose_extractor.egg-info\SOURCES.txt'
running build_ext
test_instance (tests.article.TestArticle) ... ok
test_tmp_defaut (tests.configuration.TestTempDir) ... ok
test_tmp_overwritten (tests.configuration.TestTempDir) ... ok
test_tags_abcau (tests.extractors.TestArticleTags) ... ok
test_tags_cnet (tests.extractors.TestArticleTags) ... ok
test_tags_deadline (tests.extractors.TestArticleTags) ... ok
test_tags_kexp (tests.extractors.TestArticleTags) ... ok
test_tags_wnyc (tests.extractors.TestArticleTags) ... ok
test_cnn_arabic (tests.extractors.TestExtractArabic) ... ok
test_bbc_chinese (tests.extractors.TestExtractChinese) ... Building Trie..., from
d:\NoWhitepaceProgramFiles\python27\lib\site-packages\jieba\dict.txt
loading model from cache c:\users\danyang\appdata\local\temp\jieba.cache
loading model cost 1.12200021744 seconds.
Trie has been built succesfully.
ok
test_donga_korean (tests.extractors.TestExtractKorean) ... ok
test_get_canonical_url (tests.extractors.TestExtractWithUrl) ... ok
test_allnewlyrics1 (tests.extractors.TestExtractions) ... ok
test_aolNews (tests.extractors.TestExtractions) ... ok
test_businessWeek1 (tests.extractors.TestExtractions) ... ok
test_businessWeek2 (tests.extractors.TestExtractions) ... ok
test_businessWeek3 (tests.extractors.TestExtractions) ... ok
test_businessinsider1 (tests.extractors.TestExtractions) ... ok
test_businessinsider2 (tests.extractors.TestExtractions) ... ok
test_businessinsider3 (tests.extractors.TestExtractions) ... ok
test_cbslocal (tests.extractors.TestExtractions) ... ok
test_cnbc1 (tests.extractors.TestExtractions) ... ok
test_cnet (tests.extractors.TestExtractions) ... ok
test_cnn1 (tests.extractors.TestExtractions) ... ok
test_elmondo1 (tests.extractors.TestExtractions) ... ok
test_elpais (tests.extractors.TestExtractions) ... ok
test_engadget (tests.extractors.TestExtractions) ... ok
test_espn (tests.extractors.TestExtractions) ... ok
test_foxNews (tests.extractors.TestExtractions) ... ok
test_gizmodo1 (tests.extractors.TestExtractions) ... ok
test_huffingtonPost2 (tests.extractors.TestExtractions) ... ok
test_issue24 (tests.extractors.TestExtractions) ... ok
test_issue25 (tests.extractors.TestExtractions) ... ok
test_issue28 (tests.extractors.TestExtractions) ... ok
test_issue32 (tests.extractors.TestExtractions) ... ok
test_issue4 (tests.extractors.TestExtractions) ... ok
test_lefigaro (tests.extractors.TestExtractions) ... ok
test_liberation (tests.extractors.TestExtractions) ... ok
test_marketplace (tests.extractors.TestExtractions) ... ok
test_mashable_issue_74 (tests.extractors.TestExtractions) ... ok
test_msn1 (tests.extractors.TestExtractions) ... ok
test_politico (tests.extractors.TestExtractions) ... ok
test_techcrunch1 (tests.extractors.TestExtractions) ... ok
test_testHuffingtonPost (tests.extractors.TestExtractions) ... ok
test_time (tests.extractors.TestExtractions) ... ok
test_time2 (tests.extractors.TestExtractions) ... ok
test_usatoday_issue_74 (tests.extractors.TestExtractions) ... ok
test_yahoo (tests.extractors.TestExtractions) ... ok
test_allnewlyrics1 (tests.extractors.TestExtractionsRaw) ... ok
test_aolNews (tests.extractors.TestExtractionsRaw) ... ok
test_businessWeek1 (tests.extractors.TestExtractionsRaw) ... ok
test_businessWeek2 (tests.extractors.TestExtractionsRaw) ... ok
test_businessWeek3 (tests.extractors.TestExtractionsRaw) ... ok
test_businessinsider1 (tests.extractors.TestExtractionsRaw) ... ok
test_businessinsider2 (tests.extractors.TestExtractionsRaw) ... ok
test_businessinsider3 (tests.extractors.TestExtractionsRaw) ... ok
test_cbslocal (tests.extractors.TestExtractionsRaw) ... ok
test_cnbc1 (tests.extractors.TestExtractionsRaw) ... ok
test_cnet (tests.extractors.TestExtractionsRaw) ... ok
test_cnn1 (tests.extractors.TestExtractionsRaw) ... ok
test_elmondo1 (tests.extractors.TestExtractionsRaw) ... ok
test_elpais (tests.extractors.TestExtractionsRaw) ... ok
test_engadget (tests.extractors.TestExtractionsRaw) ... ok
test_espn (tests.extractors.TestExtractionsRaw) ... ok
test_foxNews (tests.extractors.TestExtractionsRaw) ... ok
test_gizmodo1 (tests.extractors.TestExtractionsRaw) ... ok
test_huffingtonPost2 (tests.extractors.TestExtractionsRaw) ... ok
test_issue24 (tests.extractors.TestExtractionsRaw) ... ok
test_issue25 (tests.extractors.TestExtractionsRaw) ... ok
test_issue28 (tests.extractors.TestExtractionsRaw) ... ok
test_issue32 (tests.extractors.TestExtractionsRaw) ... ok
test_issue4 (tests.extractors.TestExtractionsRaw) ... ok
test_lefigaro (tests.extractors.TestExtractionsRaw) ... ok
test_liberation (tests.extractors.TestExtractionsRaw) ... ok
test_marketplace (tests.extractors.TestExtractionsRaw) ... ok
test_mashable_issue_74 (tests.extractors.TestExtractionsRaw) ... ok
test_msn1 (tests.extractors.TestExtractionsRaw) ... ok
test_politico (tests.extractors.TestExtractionsRaw) ... ok
test_techcrunch1 (tests.extractors.TestExtractionsRaw) ... ok
test_testHuffingtonPost (tests.extractors.TestExtractionsRaw) ... ok
test_time (tests.extractors.TestExtractionsRaw) ... ok
test_time2 (tests.extractors.TestExtractionsRaw) ... ok
test_usatoday_issue_74 (tests.extractors.TestExtractionsRaw) ... ok
test_yahoo (tests.extractors.TestExtractionsRaw) ... ok
test_basic_image (tests.images.ImageExtractionTests) ... ok
test_known_image_css_class (tests.images.ImageExtractionTests) ... ok
test_known_image_css_id (tests.images.ImageExtractionTests) ... ok
test_known_image_css_parent_class (tests.images.ImageExtractionTests) ... ok
test_known_image_css_parent_id (tests.images.ImageExtractionTests) ... ok
test_known_image_empty_src (tests.images.ImageExtractionTests)
Tests that img tags for known image sources with empty src attributes are skipped.
 ... ok
test_known_image_name_parent (tests.images.ImageExtractionTests) ... ok
test_opengraph_tag (tests.images.ImageExtractionTests) ... ok
test_detail (tests.images.ImageUtilsTests) ... ok
test_utils_get_image_dimensions (tests.images.ImageUtilsTests) ... ok
test_childNodesWithText (tests.parsers.ParserBase) ... ok
test_cssselect (tests.parsers.ParserBase) ... ok
test_delAttribute (tests.parsers.ParserBase) ... ok
test_droptag (tests.parsers.ParserBase) ... ok
test_getElementsByTag (tests.parsers.ParserBase) ... ok
test_getElementsByTags (tests.parsers.ParserBase) ... ok
test_replacetag (tests.parsers.ParserBase) ... ok
test_striptags (tests.parsers.ParserBase) ... ok
test_tostring (tests.parsers.ParserBase) ... ok
test_childNodesWithText (tests.parsers.TestParser) ... ok
test_cssselect (tests.parsers.TestParser) ... ok
test_delAttribute (tests.parsers.TestParser) ... ok
test_droptag (tests.parsers.TestParser) ... ok
test_getElementsByTag (tests.parsers.TestParser) ... ok
test_getElementsByTags (tests.parsers.TestParser) ... ok
test_replacetag (tests.parsers.TestParser) ... ok
test_striptags (tests.parsers.TestParser) ... ok
test_tostring (tests.parsers.TestParser) ... ok
test_childNodesWithText (tests.parsers.TestParserSoup) ... ok
test_cssselect (tests.parsers.TestParserSoup) ... ok
test_delAttribute (tests.parsers.TestParserSoup) ... ok
test_droptag (tests.parsers.TestParserSoup) ... ok
test_getElementsByTag (tests.parsers.TestParserSoup) ... ok
test_getElementsByTags (tests.parsers.TestParserSoup) ... ok
test_replacetag (tests.parsers.TestParserSoup) ... ok
test_striptags (tests.parsers.TestParserSoup) ... ok
test_tostring (tests.parsers.TestParserSoup) ... ok
test_embed (tests.videos.ImageExtractionTests) ... FAIL
test_iframe (tests.videos.ImageExtractionTests) ... FAIL
test_object (tests.videos.ImageExtractionTests) ... FAIL

======================================================================
FAIL: test_embed (tests.videos.ImageExtractionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\programming\python\python-goose\tests\videos.py", line 75, in test_embe
d
    self.runArticleAssertions(article=article, fields=fields)
  File "d:\programming\python\python-goose\tests\extractors.py", line 124, in runA
rticleAssertions
    getattr(self, assertion)(field, expected_value, result_value)
  File "d:\programming\python\python-goose\tests\videos.py", line 60, in assert_mo
vies
    self.assertEqual(r, v)
AssertionError: '<embed src="https://www.youtube.com/v/M7lc1UVf-VE?version=3&amp;a
utoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" width="
640" height="390"/>&#13;' != u'<embed src="https://www.youtube.com/v/M7lc1UVf-VE?v
ersion=3&amp;autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="a
lways" width="640" height="390"/>'

======================================================================
FAIL: test_iframe (tests.videos.ImageExtractionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\programming\python\python-goose\tests\videos.py", line 80, in test_ifra
me
    self.runArticleAssertions(article=article, fields=fields)
  File "d:\programming\python\python-goose\tests\extractors.py", line 124, in runA
rticleAssertions
    getattr(self, assertion)(field, expected_value, result_value)
  File "d:\programming\python\python-goose\tests\videos.py", line 60, in assert_mo
vies
    self.assertEqual(r, v)
AssertionError: '<iframe frameborder="0" width="480" height="270" src="http://www.
dailymotion.com/embed/video/x130bpf"/>&#13;' != u'<iframe frameborder="0" width="4
80" height="270" src="http://www.dailymotion.com/embed/video/x130bpf"/>'

======================================================================
FAIL: test_object (tests.videos.ImageExtractionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\programming\python\python-goose\tests\videos.py", line 85, in test_obje
ct
    self.runArticleAssertions(article=article, fields=fields)
  File "d:\programming\python\python-goose\tests\extractors.py", line 124, in runA
rticleAssertions
    getattr(self, assertion)(field, expected_value, result_value)
  File "d:\programming\python\python-goose\tests\videos.py", line 60, in assert_mo
vies
    self.assertEqual(r, v)
AssertionError: '<object width="640" height="390">&#13;<param name="movie" value="
https://www.youtube.com/v/M7lc1UVf-VE?version=3&amp;autoplay=1"/>&#13;<param name=
"allowScriptAccess" value="always"/>&#13;<embed src="https://www.youtube.com/v/M7l
c1UVf-VE?version=3&amp;autoplay=1" type="application/x-shockwave-flash" allowscrip
taccess="always" width="640" height="390"/>&#13;</object>&#13;' != u'<object width
="640" height="390"><param name="movie" value="https://www.youtube.com/v/M7lc1UVf-
VE?version=3&amp;autoplay=1"/><param name="allowScriptAccess" value="always"/><emb
ed src="https://www.youtube.com/v/M7lc1UVf-VE?version=3&amp;autoplay=1" type="appl
ication/x-shockwave-flash" allowscriptaccess="always" width="640" height="390"/></
object>'

----------------------------------------------------------------------
Ran 124 tests in 17.403s

FAILED (failures=3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant