Skip to content

Commit 92cad33

Browse files
Don't hit google.com every test run
Hit my domain instead; it could use the traffic.
1 parent 0fe0945 commit 92cad33

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/TestUrls.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright (c) 2016 Will Thames <[email protected]>
2+
# Copyright (c) 2018 The Python GSSAPI Team
23
#
34
# Permission is hereby granted, free of charge, to any person obtaining a copy
45
# of this software and associated documentation files (the "Software"), to deal
@@ -19,6 +20,7 @@
1920
# THE SOFTWARE.
2021

2122
import unittest
23+
2224
import urllib_gssapi
2325

2426
try:
@@ -30,12 +32,11 @@
3032

3133

3234
class TestUrls(unittest.TestCase):
33-
3435
def setUp(self):
3536
handler = urllib_gssapi.HTTPSPNEGOAuthHandler()
3637
opener = urllib_request.build_opener(handler)
3738
urllib_request.install_opener(opener)
3839

39-
def testGoogle(self):
40-
url = 'https://www.google.com'
41-
urllib_request.Request(url)
40+
def test_non_SPNEGO(self):
41+
r = urllib_request.urlopen("https://mivehind.net/")
42+
r.read()

0 commit comments

Comments
 (0)