Commit 817a249
committed
test: fix ImportError if psycopg2 not installed
test_postgresql was reaching into roundup.backends.back_postgresql
before checking to see if psycopg2 was available. Move the (partly
duplicated) import inside the guard so it imports only if psycopg2 is
available.1 parent d49b2a0 commit 817a249
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments