Commit fd7ed97
committed
In tests, don't configure the dns.resolver.Resolver when using mocked DNS data
The mocked DNS response class, which allows tests to run without a live
Internet connection, creates a dns.resolver.Resolver that still tries to
be configured using /etc/resolve.conf. That fails when the file cannot be read.
When using mocked data, this is now disabled.
Fixes #127.1 parent a584257 commit fd7ed97
File tree
2 files changed
+4
-3
lines changed- email_validator
- tests
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
0 commit comments