Skip to content

Commit

Permalink
Fix test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cjwatson committed Jan 6, 2018
1 parent 3f2d786 commit 53cfcfe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/zope/testrunner/tests/test_find.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"""Unit tests for test discovery."""

import doctest
import os.path
import unittest

from zope.testrunner import find
Expand Down Expand Up @@ -75,5 +76,8 @@ def test_DuplicateTestIDError_message_contains_all_test_ids(self):
# contains all the duplicate test IDs it found.
with self.assertRaises(find.DuplicateTestIDError) as e:
find.find_tests(UniquenessOptions(), [self.test_suites])
self.assertIn('testrunner-ex/sampletests.rst', str(e.exception))
self.assertIn('testrunner-ex/sampletestsl.rst', str(e.exception))
self.assertIn(
os.path.join('testrunner-ex', 'sampletests.rst'), str(e.exception))
self.assertIn(
os.path.join('testrunner-ex', 'sampletestsl.rst'),
str(e.exception))

0 comments on commit 53cfcfe

Please sign in to comment.