8000 Fix test_exposition.py on Windows by alexandrul · Pull Request #73 · prometheus/client_python · GitHub
[go: up one dir, main page]

Skip to content

Fix test_exposition.py on Windows #73

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

Merged
merged 1 commit into from
Jan 23, 2016
Merged

Fix test_exposition.py on Windows #73

merged 1 commit into from
Jan 23, 2016

Conversation

alexandrul
Copy link
Contributor

No description provided.

@@ -102,7 +102,7 @@ def do_PUT(self):
do_POST = do_PUT
do_DELETE = do_PUT

httpd = HTTPServer(('', 0), TestHandler)
httpd = HTTPServer(('localhost', 0), TestHandler)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, this breaks in other OSes. Can you check this on Linux?

@alexandrul
Copy link
Contributor Author
user@machine:/_apps/sentry/temp/client_python/tests$ ../../../python/bin/python --version
Python 2.7.9

user@machine:/_apps/sentry/temp/client_python/tests$ uname -a
Linux machine 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux

user@machine:/_apps/sentry/temp/client_python/tests$ cat test_exposition.py | grep local
        httpd = HTTPServer(('localhost', 0), TestHandler)

user@machine:/_apps/sentry/temp/client_python/tests$ ../../../python/bin/py.test
======== test session starts ========
platform linux2 -- Python 2.7.9 -- py-1.4.31 -- pytest-2.6.4
plugins: django
collected 68 items

test_core.py .................................
test_exposition.py ...............
test_parser.py ...............
test_process_collector.py ....
test_twisted.py s

======== 67 passed, 1 skipped in 0.23 seconds ========

@alexandrul
Copy link
Contributor Author

On Windows I have Python 3.5.1 x64, and the previous output is from a Debian 8.

brian-brazil added a commit that referenced this pull request Jan 23, 2016
Fix test_exposition.py on Windows
@brian-brazil brian-brazil merged commit 83d40c1 into prometheus:master Jan 23, 2016
@alexandrul alexandrul deleted the pr2 branch February 2, 2016 09:51
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.

2 participants
0