Updated tests
This commit is contained in:
parent
f182daa85e
commit
0cbd3663e4
12 changed files with 35 additions and 15 deletions
|
|
@ -3,7 +3,8 @@ This test has been put into a module. This is because it tests warnings that
|
|||
only get triggered on first hit. This way we can ensure its imported into the
|
||||
top level and called first by the test suite.
|
||||
"""
|
||||
|
||||
import sys
|
||||
sys.path[0:0] = [""]
|
||||
import unittest
|
||||
import warnings
|
||||
|
||||
|
|
@ -88,3 +89,6 @@ class AllWarnings(unittest.TestCase):
|
|||
self.assertEqual(SyntaxWarning, warning["category"])
|
||||
self.assertEqual('non_abstract_base',
|
||||
InheritedDocumentFailTest._get_collection_name())
|
||||
|
||||
import sys
|
||||
sys.path[0:0] = [""]
|
||||
Loading…
Add table
Add a link
Reference in a new issue