Make a valid python temp file.
(self)
| 975 | class TestImportNoDeprecate(tt.TempFileMixin): |
| 976 | |
| 977 | def setUp(self): |
| 978 | """Make a valid python temp file.""" |
| 979 | self.mktmp(""" |
| 980 | import warnings |
| 981 | def wrn(): |
| 982 | warnings.warn( |
| 983 | "I AM A WARNING", |
| 984 | DeprecationWarning |
| 985 | ) |
| 986 | """) |
| 987 | super().setUp() |
| 988 | |
| 989 | def test_no_dep(self): |
| 990 | """ |