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

Use GitHub Actions to test on MS Windows #494

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cjmayo
Copy link
Contributor

@cjmayo cjmayo commented Aug 27, 2020

Includes adapted file tests, partially from #127 by Petr Dlouhý.

If anyone using Windows wants to help:

  • A couple of tests fail, the reasons need investigating
  • Testing takes too long, some tests appear to be waiting for something

@cjmayo
Copy link
Contributor Author

cjmayo commented Aug 27, 2020

The failures are:

 tests\checker\test_file.py:85: in test_markdown
    self.file_test("file.markdown", confargs=confargs)
tests\checker\__init__.py:262: in file_test
    self.fail(msg)

 tests\checker\test_loginurl.py:56: in test_loginurl
    self.assertEqual(cookies["login"], "test_user")
.tox\py\lib\site-packages\requests\cookies.py:328: in __getitem__
    return self._find_no_duplicates(name)
.tox\py\lib\site-packages\requests\cookies.py:399: in _find_no_duplicates
    raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
E   KeyError: "name='login', domain=None, path=None"
------------------------------ Captured log call ------------------------------
WARNING  urllib3.connectionpool:connectionpool.py:452 Failed to parse headers (url=http://localhost:50548/tests/checker/cgi-bin/input2cookies.py): Unknown, unparsed data: 'Set-Cookie: login=test_user\r\r\nSet-Cookie: password=test_password\r\n'
Traceback (most recent call last):
  File "d:\a\linkchecker\linkchecker\.tox\py\lib\site-packages\urllib3\connectionpool.py", line 446, in _make_request
    assert_header_parsing(httplib_response.msg)
  File "d:\a\linkchecker\linkchecker\.tox\py\lib\site-packages\urllib3\util\response.py", line 71, in assert_header_parsing
    raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data)
urllib3.exceptions.HeaderParsingError: Unknown, unparsed data: 'Set-Cookie: login=test_user\r\r\nSet-Cookie: password=test_password\r\n'

   py_GeoIP.c(23): fatal error C1083: Cannot open include file: 'GeoIP.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for GeoIP
Partially from the PR by Petr Dlouhý.
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

Successfully merging this pull request may close these issues.

None yet

1 participant