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
testAddBanInvalidEncoded fails under OSX #999
Comments
I appear to be seeing this building the fail2ban rpm, but not when I run the test directly out of the build directory, so I think something in the environment is affecting it. Success: readtickets = [FailTicket: ip=127.0.0.1 time=0 #attempts=0 matches=['user "\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd"', 'user "\xc3\xa4\xc3\xb6\xc3\xbc\xc3\x9f"'], FailTicket: ip=127.0.0.2 time=0 #attempts=0 matches=['user "\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd"', 'user "\xc3\x83\xc2\xa4\xc3\x83\xc2\xb6\xc3\x83\xc2\xbc\xc3\x83\xc2\x9f"'], FailTicket: ip=127.0.0.3 time=0 #attempts=0 matches=['user "\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd"', 'user "\xc3\xa4\xc3\xb6\xc3\xbc\xc3\x9f"']] Fail: Works again if I set LANG to en_US.UTF-8 (from C, the default in rpm). |
Should we possibly add to this test case some conditions, like os.environ["LANG"] or sys.getdefaultencoding()? |
I'm now seeing a failure with en_US.UTF-8 and 0.9.4:
|
I can suspect that has changed again in python 3.5... will test it now |
Seems to be also already fixed in
|
Hmm, mixed results for me - koji build did not have this test failure, local mock build did. Any chance for a simple backport to 0.9.4? |
What did you mean exactly?
Well if I knew why (need more info). This can be even not so "simple"... |
mock is tool for doing local package builds. Well, currently this test failure is blocking releasing 0.9.4 for Fedora. Unless we decide to ignore the test failure, which I'd rather not do unless we know it's just a test issue. |
I know what is mock, the question was rather "concerns this also my branch or not", because you wrote "mixed results" |
What I meant was using your branch, the test still failed in my local mock build, but not with my koji build. Strange. |
Then I think the mock would use something "wrong" (environment, etc.) |
see
http://nipy.bic.berkeley.edu/builders/fail2ban-py2.6-osx-10.6_master/builds/151/steps/shell_1/logs/stdio:
and confirming that while debugging while running it query returns without "data":
but if I just reopen that sqlite db from another python session -- load is there:
The text was updated successfully, but these errors were encountered: