Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r63960:a43e5c7d3f2e
Date: 2013-05-10 14:16 +0200
http://bitbucket.org/pypy/pypy/changeset/a43e5c7d3f2e/
Log: fix those
diff --git a/pypy/interpreter/test/test_app_main.py
b/pypy/interpreter/test/test_app_main.py
--- a/pypy/interpreter/test/test_app_main.py
+++ b/pypy/interpreter/test/test_app_main.py
@@ -461,7 +461,7 @@
p = os.path.abspath(p)
monkeypatch.chdir(os.path.dirname(app_main))
child = self.spawn(['-i',
- '-m', 'test2.mymodule',
+ '-m', 'test.mymodule',
'extra'])
child.expect('mymodule running')
child.expect('Name: __main__')
@@ -472,9 +472,9 @@
child.expect(re.escape(repr("foobar")))
child.expect('>>> ')
child.sendline('import sys')
- child.sendline('"test2" in sys.modules')
+ child.sendline('"test" in sys.modules')
child.expect('True')
- child.sendline('"test2.mymodule" in sys.modules')
+ child.sendline('"test.mymodule" in sys.modules')
child.expect('False')
child.sendline('sys.path[0]')
child.expect("''")
@@ -566,7 +566,7 @@
child.expect('hello')
monkeypatch.chdir(os.path.dirname(app_main))
- child = self.spawn(['-mtest2.mymodule'])
+ child = self.spawn(['-mtest.mymodule'])
child.expect('mymodule running')
def test_ps1_only_if_interactive(self):
@@ -671,7 +671,7 @@
p = os.path.join(os.path.realpath(os.path.dirname(__file__)),
'mymodule.py')
p = os.path.abspath(p)
monkeypatch.chdir(os.path.dirname(app_main))
- data = self.run('-m test2.mymodule extra')
+ data = self.run('-m test.mymodule extra')
assert 'mymodule running' in data
assert 'Name: __main__' in data
# ignoring case for windows. abspath behaves different from autopath
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit