Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

coverage and warnings

  • Loading branch information...
commit fd266a8ffe324a0c45bffded28522ff9984765a3 1 parent c779f17
Chris McDonough mcdonc authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  pyramid/compat.py
  2. +4 −4 pyramid/tests/test_config/test_init.py
2  pyramid/compat.py
View
@@ -42,7 +42,7 @@
def text_(s, encoding='latin-1', errors='strict'):
if isinstance(s, binary_type):
return s.decode(encoding, errors)
- return s
+ return s # pragma: no cover
def bytes_(s, encoding='latin-1', errors='strict'):
if isinstance(s, text_type):
8 pyramid/tests/test_config/test_init.py
View
@@ -605,8 +605,8 @@ def test_setup_registry_includes(self):
pyramid.tests.test_config.dummy_include2""",
}
config.setup_registry(settings=settings)
- self.assert_(reg.included)
- self.assert_(reg.also_included)
+ self.assertTrue(reg.included)
+ self.assertTrue(reg.also_included)
def test_setup_registry_includes_spaces(self):
from pyramid.registry import Registry
@@ -617,8 +617,8 @@ def test_setup_registry_includes_spaces(self):
"""pyramid.tests.test_config.dummy_include pyramid.tests.test_config.dummy_include2""",
}
config.setup_registry(settings=settings)
- self.assert_(reg.included)
- self.assert_(reg.also_included)
+ self.assertTrue(reg.included)
+ self.assertTrue(reg.also_included)
def test_setup_registry_tweens(self):
from pyramid.interfaces import ITweens
Please sign in to comment.
Something went wrong with that request. Please try again.