diff options
| author | Michael Merickel <michael@merickel.org> | 2016-04-19 21:14:33 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2016-04-19 21:14:33 -0500 |
| commit | a8deed9b86e5c2cdfa7f0729ba1c0e03ee5fbad8 (patch) | |
| tree | 11c822d37fb70de23de9206ae936e086492d955d | |
| parent | 564c396522113ba31cf1c0c81c4497aa6ba5d704 (diff) | |
| parent | 4e6f989169bff51348718fa398af10cdad83cd68 (diff) | |
| download | pyramid-a8deed9b86e5c2cdfa7f0729ba1c0e03ee5fbad8.tar.gz pyramid-a8deed9b86e5c2cdfa7f0729ba1c0e03ee5fbad8.tar.bz2 pyramid-a8deed9b86e5c2cdfa7f0729ba1c0e03ee5fbad8.zip | |
Merge branch 'pr/2520' into feature/appveyor-ci
| -rw-r--r-- | pyramid/tests/test_config/test_views.py | 2 | ||||
| -rw-r--r-- | pyramid/tests/test_scripts/test_proutes.py | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py index 21ed24f44..878574e88 100644 --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -3093,7 +3093,7 @@ class TestStaticURLInfo(unittest.TestCase): inst = self._makeOne() cb = DummyCacheBuster('foo') inst.add_cache_buster(config, here, cb) - self.assertEqual(inst.cache_busters, [(here + '/', cb, False)]) + self.assertEqual(inst.cache_busters, [(here + os.sep, cb, False)]) def test_add_cachebuster_overwrite(self): config = DummyConfig() diff --git a/pyramid/tests/test_scripts/test_proutes.py b/pyramid/tests/test_scripts/test_proutes.py index e426eee73..876572b01 100644 --- a/pyramid/tests/test_scripts/test_proutes.py +++ b/pyramid/tests/test_scripts/test_proutes.py @@ -1,3 +1,4 @@ +import os import unittest from pyramid.tests.test_scripts import dummy @@ -396,7 +397,8 @@ class TestPRoutesCommand(unittest.TestCase): from pyramid.renderers import null_renderer as nr config = self._makeConfig(autocommit=True) config.add_static_view('static', 'static', cache_max_age=3600) - config.add_static_view(name='static2', path='/var/www/static') + path2 = os.path.normpath('/var/www/static') + config.add_static_view(name='static2', path=path2) config.add_static_view( name='pyramid_scaffold', path='pyramid:scaffolds/starter/+package+/static' @@ -413,7 +415,7 @@ class TestPRoutesCommand(unittest.TestCase): expected = [ ['__static/', '/static/*subpath', 'pyramid.tests.test_scripts:static/', '*'], - ['__static2/', '/static2/*subpath', '/var/www/static/', '*'], + ['__static2/', '/static2/*subpath', path2 + os.sep, '*'], ['__pyramid_scaffold/', '/pyramid_scaffold/*subpath', 'pyramid:scaffolds/starter/+package+/static/', '*'], ] |
