File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 44
55import unittest
66
7+ import six
78from pysolr import SolrCloud , SolrError , ZooKeeper , json
89
910from .test_client import SolrTestCase
@@ -56,16 +57,16 @@ def test_invalid_collection(self):
5657
5758 def test__create_full_url (self ):
5859 # Nada.
59- self . assertRegexpMatches (
60- self .solr ._create_full_url (path = "" ), r"http://localhost:89../solr/core0$"
60+ six . assertRegex (
61+ self , self .solr ._create_full_url (path = "" ), r"http://localhost:89../solr/core0$"
6162 )
6263 # Basic path.
63- self . assertRegexpMatches (
64- self .solr ._create_full_url (path = "pysolr_tests" ),
64+ six . assertRegex (
65+ self , self .solr ._create_full_url (path = "pysolr_tests" ),
6566 r"http://localhost:89../solr/core0/pysolr_tests$" ,
6667 )
6768 # Leading slash (& making sure we don't touch the trailing slash).
68- self . assertRegexpMatches (
69- self .solr ._create_full_url (path = "/pysolr_tests/select/?whatever=/" ),
69+ six . assertRegex (
70+ self , self .solr ._create_full_url (path = "/pysolr_tests/select/?whatever=/" ),
7071 r"http://localhost:89../solr/core0/pysolr_tests/select/\?whatever=/" ,
7172 )
You can’t perform that action at this time.
0 commit comments