Make a valid python temp file.
(self)
| 1114 | |
| 1115 | class TestImportNoDeprecate(tt.TempFileMixin): |
| 1116 | def setUp(self): |
| 1117 | """Make a valid python temp file.""" |
| 1118 | self.mktmp( |
| 1119 | """ |
| 1120 | import warnings |
| 1121 | def wrn(): |
| 1122 | warnings.warn( |
| 1123 | "I AM A WARNING", |
| 1124 | DeprecationWarning |
| 1125 | ) |
| 1126 | """ |
| 1127 | ) |
| 1128 | super().setUp() |
| 1129 | |
| 1130 | def test_no_dep(self): |
| 1131 | """ |