Browse Source

[2298] assert IOError raising instead of StatsHttpdDataError

Naoki Kambe 12 years ago
parent
commit
c42b9c162d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/stats/tests/b10-stats-httpd_test.py

+ 1 - 1
src/bin/stats/tests/b10-stats-httpd_test.py

@@ -720,7 +720,7 @@ class TestStatsHttpd(unittest.TestCase):
             self.assertTrue(lines.find(opts[n])>0)
             self.assertTrue(lines.find(opts[n])>0)
         # unsuccessful condition
         # unsuccessful condition
         self.assertRaises(
         self.assertRaises(
-            IOError,
+            stats_httpd.StatsHttpdDataError,
             self.stats_httpd.open_template, '/path/to/foo/bar')
             self.stats_httpd.open_template, '/path/to/foo/bar')
 
 
     def test_commands(self):
     def test_commands(self):