Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Xena
python-eventlet
newdnspython.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File newdnspython.patch of Package python-eventlet
Index: eventlet-0.33.0/eventlet/support/greendns.py =================================================================== --- eventlet-0.33.0.orig/eventlet/support/greendns.py +++ eventlet-0.33.0/eventlet/support/greendns.py @@ -339,7 +339,7 @@ class ResolverProxy(object): self._cached_resolver = value def clear(self): - self._resolver = dns.resolver.Resolver(filename=self._filename) + self._resolver = dns.resolver.Resolver(filename=self._filename, configure=False) self._resolver.cache = dns.resolver.LRUCache() def query(self, qname, rdtype=dns.rdatatype.A, rdclass=dns.rdataclass.IN, Index: eventlet-0.33.0/tests/greendns_test.py =================================================================== --- eventlet-0.33.0.orig/tests/greendns_test.py +++ eventlet-0.33.0/tests/greendns_test.py @@ -888,7 +888,7 @@ class TinyDNSTests(tests.LimitedTestCase # https://github.com/eventlet/eventlet/issues/499 # None means we don't want the server to find the IP with tests.dns_tcp_server(None) as dnsaddr: - resolver = Resolver() + resolver = Resolver(configure=False) resolver.nameservers = [dnsaddr[0]] resolver.nameserver_ports[dnsaddr[0]] = dnsaddr[1] @@ -899,7 +899,7 @@ class TinyDNSTests(tests.LimitedTestCase # https://github.com/eventlet/eventlet/issues/499 expected_ip = "192.168.1.1" with tests.dns_tcp_server(expected_ip) as dnsaddr: - resolver = Resolver() + resolver = Resolver(configure=False) resolver.nameservers = [dnsaddr[0]] resolver.nameserver_ports[dnsaddr[0]] = dnsaddr[1] response = resolver.query('host.example.com', 'a', tcp=True)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor