File: env_polution.test

package info (click to toggle)
atheist 0.20100717-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 900 kB
  • ctags: 558
  • sloc: python: 2,922; xml: 578; makefile: 111; sh: 5
file content (6 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
# -*- mode:python; coding:utf-8 -*-

t = Test('$atheist -s "a=1" -s "print a"',
         shell=True, expected=1, save_stderr=True,
         desc="Assure the taskcases have isolated environments")
t.post += FileContains("NameError: name 'a' is not defined", t.stderr)