old_contents: import requests
  import sys
  
  from mock import patch
  from unittest import TestCase, skipIf
  
  from metrology import Metrology
  from metrology.reporter.librato import LibratoReporter
  
  
  @skipIf("java" in sys.version.lower(), "doesn't support jython")
  class LibratoReporterTest(TestCase):
      def setUp(self):
          self.reporter = LibratoReporter("<email>", "<token>")
  
          Metrology.meter('meter').mark()
          Metrology.counter('counter').increment()
          Metrology.timer('timer').update(1.5)
          Metrology.utilization_timer('utimer').update(1.5)
  
      def tearDown(self):
          self.reporter.stop()
          Metrology.stop()
  
      @patch.object(requests, "post")
      def test_write(self, mock):
          self.reporter.write()
          self.assertTrue(mock.send.assert_called())
          self.assertTrue("gauges" in mock.call_args_list[0][1]['data'])
          self.assertTrue("counters" in mock.call_args_list[0][1]['data'])
  
new_contents: import requests
  import sys
  import pytest
  
  from mock import patch
  from unittest import TestCase
  
  from metrology import Metrology
  from metrology.reporter.librato import LibratoReporter
  
  
  @pytest.mark.skipif('"java" in sys.version.lower()')
  class LibratoReporterTest(TestCase):
      def setUp(self):
          self.reporter = LibratoReporter("<email>", "<token>")
  
          Metrology.meter('meter').mark()
          Metrology.counter('counter').increment()
          Metrology.timer('timer').update(1.5)
          Metrology.utilization_timer('utimer').update(1.5)
  
      def tearDown(self):
          self.reporter.stop()
          Metrology.stop()
  
      @patch.object(requests, "post")
      def test_write(self, mock):
          self.reporter.write()
          self.assertTrue(mock.send.assert_called())
          self.assertTrue("gauges" in mock.call_args_list[0][1]['data'])
          self.assertTrue("counters" in mock.call_args_list[0][1]['data'])
  
subject: fix python 2.6 tests