Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7fb0e97

Browse files
committed
Fixing up drift from master.
1 parent cf35585 commit 7fb0e97

File tree

7 files changed

+13
-16
lines changed

7 files changed

+13
-16
lines changed

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
:caption: Stackdriver Error Reporting
123123

124124
error-reporting-usage
125+
Client <error-reporting-client>
125126

126127
.. toctree::
127128
:maxdepth: 0

docs/logging-usage.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,4 +454,3 @@ The Python logging handler can use different transports. The default is
454454

455455
1. :class:`gcloud.logging.handlers.SyncTransport` this handler does a direct API call on each
456456
logging statement to write the entry.
457-

gcloud/logging/handlers/test_handlers.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
# limitations under the License.
1414

1515
import logging
16+
import unittest
1617

17-
import unittest2
1818

19-
20-
class TestCloudLoggingHandler(unittest2.TestCase):
19+
class TestCloudLoggingHandler(unittest.TestCase):
2120

2221
PROJECT = 'PROJECT'
2322

@@ -44,7 +43,7 @@ def test_emit(self):
4443
self.assertEqual(handler.transport.send_called_with, (record, MESSAGE))
4544

4645

47-
class TestSetupLogging(unittest2.TestCase):
46+
class TestSetupLogging(unittest.TestCase):
4847

4948
def _callFUT(self, handler, excludes=None):
5049
from gcloud.logging.handlers.handlers import setup_logging

gcloud/logging/handlers/transports/test_background_thread.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414

1515
import logging
1616
import time
17+
import unittest
1718

18-
import unittest2
1919

20-
21-
class TestBackgroundThreadHandler(unittest2.TestCase):
20+
class TestBackgroundThreadHandler(unittest.TestCase):
2221

2322
PROJECT = 'PROJECT'
2423

@@ -56,7 +55,7 @@ def test_send(self):
5655
EXPECTED_SENT)
5756

5857

59-
class TestWorker(unittest2.TestCase):
58+
class TestWorker(unittest.TestCase):
6059

6160
def _getTargetClass(self):
6261
from gcloud.logging.handlers.transports.background_thread import (

gcloud/logging/handlers/transports/test_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import unittest2
15+
import unittest
1616

1717

18-
class TestBaseHandler(unittest2.TestCase):
18+
class TestBaseHandler(unittest.TestCase):
1919

2020
PROJECT = 'PROJECT'
2121

gcloud/logging/handlers/transports/test_sync.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
# limitations under the License.
1414

1515
import logging
16+
import unittest
1617

17-
import unittest2
1818

19-
20-
class TestSyncHandler(unittest2.TestCase):
19+
class TestSyncHandler(unittest.TestCase):
2120

2221
PROJECT = 'PROJECT'
2322

system_tests/logging_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def test_log_handler_async(self):
148148
cloud_logger = logging.getLogger(handler.name)
149149
cloud_logger.addHandler(handler)
150150
cloud_logger.warn(LOG_MESSAGE)
151-
entries, _ = _retry_backoff(_has_entries, logger.list_entries)
151+
entries, _ = self._list_entries(logger)
152152
JSON_PAYLOAD = {
153153
'message': LOG_MESSAGE,
154154
'python_logger': handler.name
@@ -167,7 +167,7 @@ def test_log_handler_sync(self):
167167
logger = Config.CLIENT.logger(handler.name)
168168
self.to_delete.append(logger)
169169

170-
LOGGER_NAME = "mylogger"
170+
LOGGER_NAME = 'mylogger'
171171
cloud_logger = logging.getLogger(LOGGER_NAME)
172172
cloud_logger.addHandler(handler)
173173
cloud_logger.warn(LOG_MESSAGE)

0 commit comments

Comments
 (0)