Check that files in odd encodings are accepted.
(self)
| 331 | _ip.magic('reset -f') |
| 332 | |
| 333 | def test_unicode(self): |
| 334 | """Check that files in odd encodings are accepted.""" |
| 335 | mydir = os.path.dirname(__file__) |
| 336 | na = os.path.join(mydir, 'nonascii.py') |
| 337 | _ip.magic('run "%s"' % na) |
| 338 | nt.assert_equal(_ip.user_ns['u'], u'Ўт№Ф') |
| 339 | |
| 340 | def test_run_py_file_attribute(self): |
| 341 | """Test handling of `__file__` attribute in `%run <file>.py`.""" |