MCPcopy Create free account
hub / github.com/ipython/ipython / test_unicode

Method test_unicode

IPython/core/tests/test_run.py:333–338  ·  view source on GitHub ↗

Check that files in odd encodings are accepted.

(self)

Source from the content-addressed store, hash-verified

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`."""

Callers

nothing calls this directly

Calls 1

magicMethod · 0.45

Tested by

no test coverage detected