Skip to content

Commit

Permalink
Fix coverage failure due to configparser
Browse files Browse the repository at this point in the history
We use virtualenv in our tests to be able to validate scaffolds, and
virtualenv requires configparser on Python 2.7, which is a backport of
the Python 3.8 version of the stdlib library.

This means our import never falls back to attempting to import
ConfigParser instead, thereby failing coverage.
  • Loading branch information
digitalresistor committed May 7, 2020
1 parent 85455cc commit a52ced3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyramid/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def is_nonstr_iter(v):

try:
import configparser
except ImportError:
except ImportError: # pragma: nocover (virtualenv pulls in configparser backport)
import ConfigParser as configparser

try:
Expand Down

0 comments on commit a52ced3

Please sign in to comment.